1. 程式人生 > 實用技巧 >探索NopCommerce-.NET Core中的開源電子商務購物車平臺

探索NopCommerce-.NET Core中的開源電子商務購物車平臺

nopCommerce demo site

I headed over to https://github.com/nopSolutions/nopCommerce and cloned the repo. I have .NET Core 2.2 installed that I grabbed here. You can check out their official site and their live demo store.

我前往https://github.com/nopSolutions/nopCommerce並克隆了倉庫。 我安裝了.NET Core 2.2,並在這裡安裝了它。 您可以檢視他們的官方網站和他們的現場演示商店

It was a simple git clone and a "dotnet build" and it build and ran quite immediately. It's always nice to have a site "just work" after a clone (it's kind of a low bar, but no matter what the language it's always a joy when it works.)

它是一個簡單的git克隆和一個“ dotnet構建”,並且可以立即構建並執行。 克隆後讓站點“正常工作”總是很高興的(有點低門檻,但是不管使用哪種語言,工作時總是很高興的。)

I have SQL Express installed but I could just as easily use SQL Server for Linux running under Docker. I used the standard SQL Server Express connection string: "Server=localhost\SQLEXPRESS;Database=master;Trusted_Connection=True;" and was off and running.

我已經安裝了SQL Express,但我可以很容易地將SQL Server for Linux在Docker下執行

。 我使用了標準SQL Server Express連線字串:“ Server = localhost \ SQLEXPRESS; Database = master; Trusted_Connection = True;” 並開始執行。

nopCommerce is easy to setup

It's got a very complete /admin page with lots of Commerce-specific reports, the ability to edit the catalog, have sales, manage customers, deal with product reviews, set promotions, and more. It's like WordPress for Stores. Everything you'd need to put up a store in a few hours.

它有一個非常完整的/ admin頁面,其中包含許多特定於Commerce的報告,能夠編輯目錄,進行銷售,管理客戶,處理產品評論,設定促銷活動等等。 就像商店的WordPress。 在幾小時內開設一家商店所需的一切。

Very nice admin site in nopCommerce

nopCommerce has a very rich plugin marketplace. Basically anything you'd need is there but you could always write your own in .NET Core. For example, if I want to add Paypal as a payment option, there's 30 plugins to choose from!

nopCommerce具有非常豐富的外掛市場。 基本上所有您需要的東西都在那裡,但是您始終可以在.NET Core中編寫自己的東西。 例如,如果我想將Paypal新增為付款選項,則有30個外掛可供選擇!

NOTE: If you have any theming issues (css not showing up) with just using "dotnet build," you can try "msbuild" or opening the SLN in Visual Studio Community 2017 or newer. You may be seeing folders for plugins and themes not being copied over with dotnet build. Or you can "dotnet publish" and run from the publish folder.

注意:如果僅使用“ dotnet build”有任何主題問題(css未顯示),則可以嘗試“ msbuild”或在Visual Studio Community 2017或更高版本中開啟SLN。 您可能會看到未使用dotnet構建複製外掛和主題的資料夾。 或者,您也可以“ dotnet publish”並從publish資料夾執行。

Now, to be clear, I just literally cloned the HEAD of the actively developed version and had no problems, but you might want to use the most stable version from 2018 depending on your needs. Either way, nopCommerce is a clean code base that's working great on .NET Core. The community is VERY active, and there's a company behind the open source version that can do the work for you, customize, service, and support.

現在,要明確地說,我只是從字面上克隆了積極開發版本的HEAD,沒有任何問題,但是您可能需要根據需要使用2018年以來最穩定的版本。 無論哪種方式,nopCommerce都是一個乾淨的程式碼庫,可以在.NET Core上正常工作。 社群非常活躍,開放原始碼版本背後有一家公司可以為您完成工作,自定義,服務和支援。



Sponsor: The next generation of Jira has arrived, with new roadmaps, more flexible boards, overhauled configuration, and dozens of new integrations. Whatever new awaits you, begin it here. In a new Jira.

贊助商:下一代Jira到來了,它具有新的路線圖,更靈活的電路板,經過大修的配置以及許多新的整合。 不管有什麼新事物等著您,請從這裡開始。 在新的吉拉。

關於斯科特 (About Scott)

Scott Hanselman is a former professor, former Chief Architect in finance, now speaker, consultant, father, diabetic, and Microsoft employee. He is a failed stand-up comic, a cornrower, and a book author.

斯科特·漢塞爾曼(Scott Hanselman)是前教授,前金融首席架構師,現在是演講者,顧問,父親,糖尿病患者和Microsoft員工。 他是一位失敗的單口相聲漫畫家,一個玉米種植者和一本書的作者。

facebook twitter subscribe About 關於 Newsletter 時事通訊 Hosting By 主持人 Hosted in an Azure App Service

翻譯自: https://www.hanselman.com/blog/exploring-nopcommerce-open-source-ecommerce-shopping-cart-platform-in-net-core