Jednoduchý klon Instagramu pro hru na TMM
-
Install the requirements:
py -m pip install -r requirements.txt
-
Rename
tmmgram.example.yaml
totmmgram.yaml
and fill in the details (for debugging using a local SQLite database, remove thedb
section). -
Prepare the database:
py create_db.py
py -m flask --app tmmgram run
The PythonAnywhere free hosting can be used to deploy the app. They have a A beginner's guide to building a simple database-backed Flask website on PythonAnywhere which can serve as a reference for creating an account there and setting up the database. However, it is not a tutorial for deploying an existing project so instead of writing the code of the app according to the tutorial, this repository can be cloned (using a console) and the WSGI configuration file updated accordingly to set project_home
and import from tmmgram import app as application
.