2.0.2 • Published 6 years ago
api-todolist v2.0.2
api-todolist
Stateless and scalable Todo List API in Node JS
Installation
git clone https://github.com/YliesC/api-todolist.git
cd api-todolist
yarn installRun development server
yarn startBuild and serve in production
yarn build
yarn serveTests
yarn typecheck
yarn testDependencies
- body-parser: Node.js body parsing middleware
- compression: Node.js compression middleware
- express: Fast, unopinionated, minimalist web framework
- helmet: help secure Express/Connect apps with various HTTP headers
- mongoose: Mongoose MongoDB ODM
- swagger-ui-express: Swagger UI Express
Dev Dependencies
- babel-cli: Babel command line.
- babel-plugin-transform-flow-strip-types: Strip flow type annotations from your output code.
- babel-preset-env: A Babel preset for each environment.
- babel-preset-flow: Babel preset for all Flow plugins.
- chakram: Chakram is an API testing framework designed to test JSON REST endpoints. The library offers a BDD testing style and fully exploits javascript promises
- flow-bin: Binary wrapper for Flow - A static type checker for JavaScript
- mocha: simple, flexible, fun test framework
- nodemon: Simple monitor script for use during development of a node.js app.
Documentation
To access the OpenAPI documentation, please visit : https://localhost:3000/doc from your local environment.
Docker
Lancer
Rendez vous à la racine du projet :
docker-compose buildpour construire les imagesdocker-compose uppour lancer l'environnement
N'oubliez pas de changer l'host de connection pour mongoose en mongo (server.js)
License
AGPL-3.0