-
-
Notifications
You must be signed in to change notification settings - Fork 43
Demo Database
- Download and install MongoDB Command Line Database Tools.
- On Windows, add MongoDB Command Line Database Tools folder to
Path
environment variable. - Download wexcommerce-db.zip down to your machine.
- Restore wexCommerce demo db by using the following command:
mongorestore --verbose --drop --gzip --host=127.0.0.1 --port=27017 --username=admin --password=$PASSWORD --authenticationDatabase=admin --nsInclude="wexcommerce.*" --archive=wexcommerce.gz
Don't forget to set $PASSWORD
.
If you are using MongoDB Atlas, put your MongoDB Atlas URI in --uri=
command line argument:
mongorestore --verbose --drop --gzip --uri="mongodb://admin:$PASSWORD@127.0.0.1:27017/bookcars?authSource=admin&appName=wexcommerce" --nsInclude="wexcommerce.*" --nsFrom="wexcommerce.*" --nsTo="wexcommerce.*" --archive=wexcommerce.gz
Copy the content of cdn
in /var/www/cdn/wexcommerce on Linux or C:\inetpub\wwwroot\cdn\wexcommerce on Windows.
cdn/wexcommerce/ contains the following folders:
- cdn/wexcommerce/users: This folder contains users images.
- cdn/wexcommerce/categories: This folder contains categories images.
- cdn/wexcommerce/products: This folder contains products images.
- cdn/wexcommerce/temp: This folder contains temporay files.
Finally, add full access permissions to the user who is running wexCommerce API on /var/www/cdn/wexcommerce on Linux or C:\inetpub\wwwroot\cdn\wexcommerce on Windows.
Admin user: admin@wexcommerce.com
Password: sh0ppingC4rt
Frontend user: jdoe@wexcommerce.com
Password: sh0ppingC4rt
To restore wexCommerce demo database in Docker containers, proceed as follow:
-
Make sure that the ports 80, 8001, 4005 and 27017 are not used by any application.
-
Download and install MongoDB Command Line Database Tools on the host machine.
-
Add MongoDB Command Line Database Tools folder to
Path
environment variable in your host machine. -
Download wexcommerce-db.zip down to your host machine and unzip it.
-
Run the compose:
docker compose up
-
Go to wexcommerce-db folder and restore the demo database with the following command:
mongorestore --verbose --drop --gzip --host=127.0.0.1 --port=27017 --username=admin --password=$PASSWORD --authenticationDatabase=admin --nsInclude="wexcommerce.*" --archive=wexcommerce.gz
Replace
$PASSWORD
with your MongoDB password set in yourdocker-compose.yml
. -
Get API Docker container name with the following command:
The name should be something like this:docker container ls
src-mi-api-1
-
Go to wexcommerce-db/cdn folder and copy the content of the folder in API container with the following commands:
docker cp ./cdn/categories src-mi-api-1:/var/www/cdn/wexcommerce
docker cp ./cdn/products src-mi-api-1:/var/www/cdn/wexcommerce
Replace src-mi-api-1
with your API container name.
-
Go to the backend http://localhost:8001 and login with the following credentials:
Admin user: admin@wexcommerce.com
Password: sh0ppingC4rt -
Go to the frontend http://localhost and login with the following credentials:
Frontend user: jdoe@wexcommerce.com
Password: sh0ppingC4rt
Copyright © Akram El Assas. All rights reserved.
- Overview
- Software Architecture
- Install Guide (Self-hosted)
- Install Guide (Docker)
- Social Login Setup Guide
- Free SSL Setup Guide
- Setup Sentry
- Payment Gateways
- Setup Stripe
- Run from Source
- Run from Source (Docker)
- Fork, Customize, and Sync
- Demo Database
- Change Language and Currency
- Add New Language
- Testing
- Logs
- FAQ
- Release Notes
- Contribution Guide
- Code of Conduct