To get started locally, follow these instructions:
git
and and switch to the release/3.0.0 branchgit clone -b release/3.0.0 https://github.com/VirtoCommerce/vc-platform.git
To make a local build
cd src/VirtoCommerce.Platform.Web
dotnet build -c Development
Or use Visual Studio
!!! note While building the solution the first time from the Visual Studio, npm references should be installed and webpack should be built automatically. This would be done if Web project have this nuget package added - VirtoCommerce.BuildWebpack. It adds webpack build target to the project, which create frontend bundles on initial build._ In case of changing frontend part, explicit local build would be required to pack style/script bundles._
cd src\VirtoCommerce.Platform.Web
npm ci
npm run webpack:build
npm run webpack:watch
"ConnectionStrings": {
"VirtoCommerce" : "Data Source={SQL Server URL};Initial Catalog={Database name};Persist Security Info=True;User ID={User name};Password={User password};MultipleActiveResultSets=True;Connect Timeout=30"
},
Assets:FileSystem:PublicUrl
with url of your application, this step is needed in order for display images
"Assets": {
"Provider": "FileSystem",
"FileSystem": {
"RootPath": "~/assets",
"PublicUrl": "http://localhost:10645/assets/" <-- Set your platform application url with port localhost:10645
},
},
Content:FileSystem:PublicUrl
with url of your application, this step is needed in order for configure CMS content storage
"Content*": {
"Provider": "FileSystem",
"FileSystem": {
"RootPath": "~/cms-content",
"PublicUrl": "http://localhost:10645/cms-content/" <-- Set your platform application url with port localhost:10645
},
},
To run platform by dotnet CLI:
cd src\VirtoCommerce.Platform.Web
dotnet run -c Development --no-launch-profile
!!! note
you can add --no-build
flag to speed the start, if you have compiled the solution already.
Or run from Visual Studio
VirtoCommerce.Platform.sln
http://localhost:10645
in the browseradmin/store
to sign inNote: Don't forget to change them after the first sign in.
VirtoCommerce.Platform.Web.exe
process{module-name}/./Script/
There is tests
folder with suites which can be run locally.
Some additional tips for developing in specific IDEs.
!!! note
If you have node-sass issues, run this command
console npm rebuild node-sass
Run to trust the .NET Core SDK HTTPS development certificate:
dotnet.exe dev-certs https --trust
Read more about enforcing HTTPS in ASP.NET Core.
Restart the Platform to load the new module assemblies into the Platform's application process Recommend to install WebPack Task Runner and run webpack tasks from Visual Studio.
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。