/github_auth

GitHub OAuth2 authentication demo project

Primary LanguageHTML

GitHub OAuth2 authentication demo project

Launch the demo

Requirements

  • python 2.7
  • virtualenv

First clone this repository.

Launch the UI

  1. open a new terminal console
  2. cd to the ui folder of the repository
  3. run python -m SimpleHTTPServer 8000

Launch the API

  1. open a new terminal console
  2. cd to the api folder of the repository
  3. run virtualenv env
  4. run source env/bin/activate
  5. run pip install -r requirements.txt
  6. run gunicorn -b 0.0.0.0:5000 api:app

Try it

  1. Open your webbrower on http://localhost:8000
  2. Have fun !