/nodejs-express-auth-passport-jwt-es6-example

Boilerplate node js rest api made with Express Js, and Mongodb. also Authentication Passport, and Jwt. Code with standar eslint configuration, and compatible with ES6 ++

Primary LanguageJavaScript

Node Js ( Express ) & ES6 REST API Example

This Example for building REST APIs with ES6 and Express technology made with.

Getting Started

# clone it
git clone https://github.com/erickow/nodejs-express-auth-passport-jwt-es6-example.git
cd express-es6-rest-api

# Make it your own
rm -rf .git && git init && npm init

# Install dependencies
npm install

Run the project

# Before start, build project with webpack
npm run dev:build

# start the project
npm run dev

Api Endpoint

# user signup
localhost:3000/api/v1/users/signup

# user login
localhost:3000/api/v1/users/login

# protected example
localhost:3000/hello

# root helloword
localhost:3000