Skip to content

Contains the necessary foundation to have a RESTful API service ready to go. Complete with token based user authentication. [Expresss, Mongoose, MongoDB]

Notifications You must be signed in to change notification settings

luoto/api-starter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

API Starter Build Status

Contains the necessary foundation to have a RESTful API service ready to go. Complete with token based user authentication.

[Expresss, Mongoose, MongoDB]

Getting Started

Install required dependencies:

git clone https://github.com/luoto/api-starter
cd api-starter
npm init

Start the API server using:

npm start

Start adding in your own routes, models, and controllers.

Directory Structure

.
├── src
│   ├── api
│   │   ├── config
│   │   ├── controllers
│   │   ├── db
│   │   ├── middleware
│   │   ├── models
│   │   ├── router
│   │   ├── utils
│   │   └── server.js
│   └── index.js
├── tests
│   └── api
├── package.json
└── README.md

Testing

Run tests:

npm test

Pipline

  • Token refresh
  • Token blacklist
  • Google+ OAuth support
  • Facebook OAuth support
  • ES2015

Prerequisites

F.A.Q

Why is there no logout route?

  • Currently, the way to log out users is to delete the JWT on the client side or when the token expires. Token refreshes and blacklists will be used to remedy this problem in future releases.

What JSON response format is used?

Have another question or a suggestion?

  • Submit an issue :)

Resources

...

License

MIT

About

Contains the necessary foundation to have a RESTful API service ready to go. Complete with token based user authentication. [Expresss, Mongoose, MongoDB]

Resources

Stars

Watchers

Forks

Packages

No packages published