Project 6 of the OC formation | Build an API
API Documentation is available here : API doc
- Clone this project from Github
- Make sur you have Node.js installed.
This project was generated with Angular CLI version 13.2.4. You can find the repo here : https://github.com/OpenClassrooms-Student-Center/Web-Developer-P6
cd ./FrontEnd
npm install
- Run
npm start
for a dev server. Navigate tohttp://localhost:4200/
. The app will automatically reload if you change any of the source files.
This project was generated with NodeJs v16.14.0
cd ./BackEnd
npm install
npm start
you will access to more packages (morgan, morganBody)
npm install --only=prod
npm run start:prod #
With nodemon the app will automatically reload if you change any of the source file.
After npm is done installing, set any environment variables in a .env file (in the folder BackEnd) , with this key :
# Port Use
PORT= xxx
# MongoDB client
MONGO_SECURE_URI = mongodb+srv://<user>:<password>@cluster0.csny7.mongodb.net/<nameDatabase>?retryWrites=true&w=majority
# Random secret token
JWT_KEY= xxx