NOPCommerce codebase that runs both abcwarehouse.com and hawthorneonline.com
- Access Azure and start downloading backup content (suggest using Azure Storage Explorer).
- Clone this repo with
git clone
. - Start the development container for VSCode.
- After backup is downloaded, locally (not in dev container), run the following commands to copy the database backup from your machine to the container:
docker exec nop_devcontainer_db_1 mkdir /var/opt/mssql/backup
docker cp NOPCommerce.bak nop_devcontainer_db_1:/var/opt/mssql/backup/NOPCommerce.bak
- Run inside dev container:
chmod u+x .devcontainer/restore-scripts/restore.sh
.devcontainer/restore-scripts/restore.sh
- Copy
plugins.json
(this could be moved into a copy step)
- C# IDE:
- Visual Studio 2019
- Visual Studio Code
- SQL Server Developer Edition
- Log into the SQL Server database and access SSMS.
- Create a backup of the desired DB with a .bak extension.
- Restore the DB using the newly created .bak file.
- Run the following SQL command to update the store URLs based on new URL:
update Store
set Url = 'NEW_URL'
where Url = 'OLD_URL'
- Depending on env, you may need to run the following:
update Setting
set Value = 'WithoutWww'
where Name = 'seosettings.wwwrequirement'
- If running locally, you'll need to turn off HTTPS:
update Store
set SslEnabled = 0
If needed, download the ASP.NET Core runtime
- Clone the repository to your local machine.
- Add the
dataSettings.json
andplugins.json
files to /src/Presentation/Nop.Web/App_Data folder. - Build and run the application.
There are certain tasks you may need to run:
To run sync tasks, you will need a copy of the Staging database.
There are a collection of files you may need to store in /wwwroot.