You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Juan c52298dda8
Correction evalblanche et exemples complémentaires
3 years ago
..
config Correction evalblanche et exemples complémentaires 3 years ago
controller Correction evalblanche et exemples complémentaires 3 years ago
helpers Correction evalblanche et exemples complémentaires 3 years ago
migrations Correction evalblanche et exemples complémentaires 3 years ago
models Correction evalblanche et exemples complémentaires 3 years ago
router Correction evalblanche et exemples complémentaires 3 years ago
seeders Correction evalblanche et exemples complémentaires 3 years ago
.env Correction evalblanche et exemples complémentaires 3 years ago
.sql Correction evalblanche et exemples complémentaires 3 years ago
README.md Correction evalblanche et exemples complémentaires 3 years ago
app.js Correction evalblanche et exemples complémentaires 3 years ago
index.js Correction evalblanche et exemples complémentaires 3 years ago
package.json Correction evalblanche et exemples complémentaires 3 years ago

README.md

SETUP

DEPENDENCIES

  • install dependencies with
npm install
npm install --only=dev

DATABASE

Create the database using the .sql file

Run the migrations with:

npx sequelize-cli db:migrate

Run the seeders with:

npx sequelize-cli db:seed:all

CONFIGURATION

Configure the server port in the .env file.

Database configuration is in config/config.json file.

API

START THE SERVER

You can start the server with the following command :

npm run dev

SWAGGER

You should use the swagger available at http://localhost:<port>/api-docs.