A simple github tool The app can be accessed HERE
- A user logs into the application with their github
- User can then view a list of their repositories
-
Check that python 3, pip, virtualenv and postgres are installed
-
Clone repo and cd into it
git clone https://github.com/cdvx/github_tool.git
-
Create virtual env
python3 -m venv venv
-
Activate virtual env
. venv/bin/activate
-
Install dependencies
pip install -r requirements.txt
-
Create Application environment variables and save them in .env sample file
SECRET = 'Secret Key' FLASK_ENV = 'development' PORT = 5000 DATABASE_URL_PROD = "postgresql://{DB_HOST}/{DB_NAME}?user={DB_USER}&password={DB_PASSWORD}" DATABASE_URL_DEV = "postgresql://{DB_HOST}/{DB_NAME}?user={DB_USER}&password={DB_PASSWORD}" DATABASE_URL_TEST = "postgresql://{DB_HOST}/{DB_NAME}?user={DB_USER}&password={DB_PASSWORD}"
-
Running migrations
- create a migration file
python manage.py db migrate
- Apply Migrations
python manage.py db upgrade
- create a migration file
-
Run application.
python manage.py runserver
- Python 3.6.5
- Flask
- Postgres
Cedric Lusiba