Express/NodeJS REST API server designed to work as a backend for its Angular 2 based generic-frontend counterpart.
The main features so far are:
- User login using different strategies (initially based on a scotch.io tutorial).
- Local (email/password)
- Google (oAuth)
- Twitter (oAuth)
- Facebook (oAuth)
- Link and unlink user accounts to the aforementioned authentication strategies.
- Install packages:
npm install
- Set your own database configuration on config/database.js
- Copy the file
config/auth.js.example
toconfig/auth.js
and use your own keys - Launch the mongodb on the directory
./db
:npm run startdb
- Launch this project:
npm run start
- Open
http://localhost:3200
in your browser