Restify API WITH JWT AUTH

RESTful API built with Node.js, Restify, Mongoose and JWT. It uses 'jsonwebtoken' to create the token and restify-jwt-community to protect routes.

Quick Start

# Install dependencies
npm install

# Serve on localhost:3000
npm start

API Endpoints

Customer Routes

  • GET /customers
  • GET /customers/:id
  • POST (Protected) /customers
  • PUT (Protected) /customers/:id
  • DELETE (Protected) /customers/:id

User Routes

  • POST /register
  • POST /auth

App Info

Author

Herbert Kavuma [Netgild](https://www.netgild.com and https://herbert.netgild.com)

Version

1.0.0

License

This project is licensed under the MIT License