Skip to content

auregonz/api-starter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Express API Starter

Starter Kit pour une API fonctionnelle basée sur Express.

API Server utilities:

Framework

  • Express
    • Fast, unopinionated, minimalist web framework for Node.js

Middlewares

  • morgan
    • HTTP request logger middleware for node.js
  • Helmet
    • Helmet helps you secure your Express apps by setting various HTTP headers. It's not a silver bullet, but it can help!
  • cors
    • CORS is a node.js package for providing a Connect/Express middleware that can be used to enable CORS with various options.

Environment variables

  • dotenv
    • Dotenv is a zero-dependency module that loads environment variables from a .env file into process.env

Development utilities:

Auto-reload node server

  • nodemon
    • nodemon is a tool that helps develop Node.js based applications by automatically restarting the node application when file changes in the directory are detected.

Tests librairies

  • jest
    • Jest is a delightful JavaScript Testing Framework with a focus on simplicity. (v28.1.3 for CommonJS usage)
  • supertest
    • HTTP assertions made easy via superagent.

Setup

cd server
npm install

Start

npm run start

Development

npm run dev

Test

npm run test

Endpoints disponibles

About

Starter kit pour une API basée sur Express

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published