Website to control twitter_autobase database and trigger data updates.
- Add tests
- Update default_config (follow twitter_autobase)
- Complete form design using default_config
- Integrate with twitter_autobase
- bridge between database and Autobase object
- save twitter_autobase ngrok url to database
- send trigger with requests.post to twitter_autobase ngrok url
- Re-code twitter_autobase starter (follow main.py)
git clone https://github.com/fakhrirofi/autobase_web.git
# or download from release page
cd autobase_web
Note: Delete gunicorn
and psycopg2
from requirements.txt if you are using windows.
python3 -m venv venv
source venv/bin/activate # linux
# venv\Scripts\Activate # windows
pip3 install -r requirements.txt
Rename .env.example
to .env
, then edit its contents.
Or (if using Heroku) add .env
config vars on heroku app settings.
flask db init
flask db migrate -m initial
flask db upgrade
python3 start_gevent.py
Open 127.0.0.1:8000 on your web browser
for debugging: (set the FLASK_DEBUG
to 1 in .flaskenv
file)
flask run
Delete gevent==21.1.2
and add gunicorn==20.1.0
& psycopg2==2.8.6
in requirements.txt
Set heroku app configuration
heroku git:remote -a your-autobase-web-app-name
heroku addons:add heroku-postgresql:hobby-dev
Attach autobase_web database to twitter_autobase database
heroku addons
heroku addons:attach your-db-addon-name -a your-twitter-autobase-app-name
Deploy the application
git add .
git commit -m 'initial commit'
git push heroku main
- 550 dyno hours, you can upgrade to 1000 dyno hours by adding credit card (it's free for free-tier)
- 4 hours downtime for Postgres per month