Please enable JavaScript.
Coggle requires JavaScript to display documents.
Building APIs with Node.js (Authentication (Authentication strategies…
Building APIs with Node.js
Support Libs
Babel
Convert ES6 to ES5
Consign
allow to load and inject dependencies easily
Body-parser
Parser the request bodies in a middleware before handler
Ex: Use to clear request.body.id
Database
SQLite3
Database
Sequelize
Framework works with SQLite3,
can use SQL command, support several database.
is promise based framework
config with SQLite
database
username
password
params.dialect
params.storage
params.define.underscored
Web FrameWork
Express
focus to work with routes,
controller, views (not models)
Authentication
Passport
a framework which is easy to work with
user's authentication
Authentication
strategies
Basic & Disget
OpenID
OAuth
OAuth 2
Json Web Tokens
JWT simple
encoded and decoded Json
Encrypt password
bcrypt
Testing
Mocha
Document API
ApiDocJS
http://apidocjs.com
Perparing the production environment