Le but était de créer une API avec Mongoose et Express, reliée à une application frontend.
git clone https://github.com/acecconato/AnthonyCecconato_6_02072021.git
cd AnthonyCecconato_6_02072021
npm install
Create the .env file from the .env.example
cp .env.example .env
Then configure the .env file (at least change the mongodb url)
npm run serve
SwaggerUI documentation is accesible on http://localhost:3000/api-docs by default.
You need to register, login, copy the returned json web token and paste it to the Authorization.
The value should begin by: Bearer JWT.
- Uploaded images are going to the UPLOAD_DIR folder ; /public/uploads by default
- Log files are located in the /var/logs folder
- In development mode, errors are displayed in the console