This is a express restfull api POC for Sequelize (ORM).
/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".
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