-
-
Notifications
You must be signed in to change notification settings - Fork 204
Demo Database
- Download and install MongoDB Command Line Database Tools.
- Add MongoDB Command Line Database Tools folder to
Path
environment variable. - Download bookcars-db.zip down to your machine.
- Restore BookCars 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="bookcars.*" --archive=bookcars.gz
Replace $PASSWORD with your MongoDB password.
Copy the content of cdn
folder on your web server so that the files will be accessible through http://localhost/cdn/bookcars/
cdn
folder contains the following folders:
-
users
: This folder contains users’ avatars and suppliers’ images. -
cars
: This folder contains cars’ images. -
temp
: This folder contains temporay files.
If you want to run BookCars from the source or install it on Windows or Linux without using Docker, proceed as follow:
-
On Windows, install IIS and copy the content of
cdn
folder inC:\inetpub\wwwroot\cdn\bookcars
. Finally, add full access permissions to the user who is running BookCars API onC:\inetpub\wwwroot\cdn\bookcars
. -
On Linux, install NGINX and copy content of
cdn
folder in/var/www/cdn/bookcars
. Then, update/etc/nginx/sites-enabled/default
as follows:
server {
listen 80 default_server;
server_name _;
...
location /cdn {
alias /var/www/cdn;
}
}
Finally, add full access permissions to the user who is running BookCars API on /var/www/cdn/bookcars
.
Admin user: [email protected]
Password: B00kC4r5
Other users Password: B00kC4r5
Copyright © 2024 Akram El Assas. All rights reserved.