This repository is created only to fork itself by own code.
The code is located mainly in
main.py all the other files
in this repository are just configuration files. You can run this
code locally, or deploy it to Heroku for free to have a personal instance.
https://APPNAME.herokuapp.comwhere APPNAME is the same as app name from Heroku (if Heroku app name is
peaceful-lake, homepage URL will be
https://APPNAME.herokuapp.com/login/github/authorizedwhere APPNAME is the same as app name from Heroku (if Heroku app name is
peaceful-lake, authorization callback URL will be
Take client ID and client secret from your GitHub application and fill the corresponding fields on Heroku site. Click the "Deploy app".
Run the following commands on your computer:
git clone https://github.com/mykhaly/self_replicating_repo.git cd flask-dance-github pip3 install virtualenv python3 -m venv venv . venv/bin/activate pip3 install -r requirements.txt
Run the following commands on your computer, inserting your values for variables (client id and client secret you should take from the Github applicationg you registered on step 1):
export GITHUB_OAUTH_CLIENT_ID=YOU_SHOULD_INSERT_YOUR_VALUE_HERE export GITHUB_OAUTH_CLIENT_SECRET=YOU_SHOULD_INSERT_YOUR_VALUE_HERE export OAUTHLIB_INSECURE_TRANSPORT=1
Thanks to @singingwolfboy for his tutorial flask-dance-github, this code is massively borrowed from there.