Skip to content

jamesflorentino/oauth-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published