Skip to content

AhmedBenyahia/auto-ecole_backend

Repository files navigation

auto-ecole.tn: Backend

Main configuration:

  • set the environment variable auto_ecole_jwtPrivateKey ,to the secrete key that will be used to hash the jsonwebtoken, the server will not start without it
  • start mongodb demon withmongod --port 3200
  • set the environment variable auto_ecole_db with the database connection string, the server will crash if not provided

Other configuration

  • set the environment variable PORT to chose what port the server should listen to

Run the server with the default configuration

For Windows user:

set auto_ecole_db="mongodb://localhost:3200/auto-ecole-dev"; set auto_ecole_jwtPrivateKey="secretKe_y"; nodemon app.js ;

For Linux user

export auto_ecole_db="mongodb://localhost:3200/auto-ecole-dev" && export auto_ecole_jwtPrivateKey="secretKe_y" && nodemon hello

About

This repository is part of my end of studies project

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published