Skip to content

Demo Database

Akram El Assas edited this page Sep 9, 2023 · 21 revisions
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 in C:\inetpub\wwwroot\cdn\bookcars. Finally, add full access permissions to the user who is running BookCars API on C:\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