项目作者: ltdt14

项目描述 :
NodeJS/Express API server with authentication boilerplate
高级语言: JavaScript
项目地址: git://github.com/ltdt14/auth-boilerplate.git
创建时间: 2017-10-12T08:15:35Z
项目社区:https://github.com/ltdt14/auth-boilerplate

开源协议:MIT License

下载


Auth Boilerplate

This is a boilerplate for a NodeJS/Express API server with authentication.
It provides a signup and login endpoint and requires an authtoken
to do crud actions on lists with list items of a user.
A webapp which directly uses this boilerplate is available here:

Auth Boilerplate Webapp

Credentials for test accout

Table of contents

Featues

  • API Server with ExpressJS
  • MongoDB connection
  • Authentication with PassportJS
  • API documentation with APIDoc
  • Testing with Mocha
  • Code Coverage with Istanbul
  • Linting with ESLint via Airbnb Styleguide and PrettierJS
  • Documentation with JSDoc
  • Log request to database

Getting Started

Prerequisites

  • This boilerplate requires two MongoDB connections. One for application specific data and one for the logging. Provide the MongoDB URIs in .env file.
  • This boilerplate requires some other variables provided in .env file. See .env.example for details

Installing

  • clone this repo
  • run npm install to install dependencies

Usage

  • run npm start to start the server

API

See API Doc to see all available REST Endpoints

Development

See Developer Readme for all available

License

MIT

Sources