jamesflorentino / oauth-demo

OAuth2 Demo using Express 4, Sequelize and MySQL

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Configuration

  1. Create a database in your preferred DB of choice.
  2. Use the db name for the path for the DB host. example: mysql://your_user:your_pass@your_host/your_database_name
  3. Add this to your .env file.
DB_URL=mysql://your_user:your_pass@your_host/your_database_name
ADMIN_KEY=banana

Run foreman start to start the server.

Tests

  1. Install mocha npm install mocha -g.
  2. Change directory to test/
  3. run $ mocha rest.js --reporter spec

How to use

Refer to the test/rest.js example to know how to authenticate with the server.

Author

James Florentino

License

MIT

About

OAuth2 Demo using Express 4, Sequelize and MySQL


Languages

Language:JavaScript 100.0%