Skip to content

JeraldVictor/node_ORM_API

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Node.js Express.js API With Sequelize(ORM)

This is a express restfull api POC for Sequelize (ORM).

API End points are

/login

  • POST method
  • required email,password
  • response will be email,password,name,authentication key,user id.

/register

  • POST method
  • required name,email,password
  • response will be email,password,name,user id, authentication key.

/home

  • GET method (Needs Authentication)
  • required authentication key in the header like header name "Key" value as "auth key sent while response"
  • response will be a JSON message "Hello"

/logout

  • GET method
  • required authentication key in the header like header name "Key" value as "auth key sent while response"
  • response will be JSON message "Thank You".

Installation:

requires Node.js v10+ to run.

$ npm i # to install all the package in package.json file.
    "cors": "^2.8.5",
    "dotenv": "^8.2.0",
    "express": "~4.16.1",
    "mariadb": "^2.5.1",
    "morgan": "^1.10.0",
    "sequelize": "^6.3.5",
    "uniqid": "^5.2.0"
$ node app.js #to start the application

About

Node API with Sequelize (ORM) and Express.js

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published