Skip to content

Développeur Web - Projet 6 - Construisez une API sécurisée pour une application d'avis gastronomiques

Notifications You must be signed in to change notification settings

acecconato/AnthonyCecconato_6_02072021

Repository files navigation

AnthonyCecconato_6_02072021 - So Pekocko

Le but était de créer une API avec Mongoose et Express, reliée à une application frontend.

DeepScan grade Known Vulnerabilities

Installation

git clone https://github.com/acecconato/AnthonyCecconato_6_02072021.git

cd AnthonyCecconato_6_02072021

npm install

Configuration

Create the .env file from the .env.example

cp .env.example .env

Then configure the .env file (at least change the mongodb url)

Launch the application

npm run serve

Documentation

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.

Good to know

  • 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

About

Développeur Web - Projet 6 - Construisez une API sécurisée pour une application d'avis gastronomiques

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published