Skip to content

Latest commit

 

History

History
97 lines (58 loc) · 1.48 KB

README.md

File metadata and controls

97 lines (58 loc) · 1.48 KB

Full Stack app

An Add Addresses REST API created using Node.js, Express.js and MongoDB. The API uses promises extensively to query the MongoDB database.

Setup

After cloning, use "npm install" and server the app using "node index.js". client App using "ng serve -o"

API Reference

POST registration User

  POST http:localhost:3000/api/server/registration

POST login User

  POST http:localhost:3000/api/server/login

This Endpoint send JWT Token to Client

GET All Addresses

  GET http:localhost:3000/api/server/address

This Endpoint Take Request Headers authorization

POST Add Addresses

  POST http:localhost:3000/api/server/address

This Endpoint Take Request Headers authorization And Request Body

POST Add Addresses

  POST http:localhost:3000/api/server/address/:id

This Endpoint Take Request Params id

Deployment

To Run Client this project run

  ng serve -o

To Run Server this project run

  node index.js

To Run Server in Dev Mode this project run

  npm run dev

Features

Client site

  • User registration
  • User Login
  • User Add / Delete / View Address
  • User Login auth guard
  • User auth guard

Server site

  • User registration API
  • User Login API
  • User Add / Delete / View Address API With JWT

Screenshots

Tech Stack

Client: Angular, ngx-Bootstrap

Server: Node, Express , Mongodb