Skip to content

Tabor-Mladych-Matematiku/tmmgram

Repository files navigation

tmmgram

Jednoduchý klon Instagramu pro hru na TMM

How to run

Before first run

  1. Install the requirements:

    py -m pip install -r requirements.txt
  2. Rename tmmgram.example.yaml to tmmgram.yaml and fill in the details (for debugging using a local SQLite database, remove the db section).

  3. Prepare the database:

    py create_db.py

Run (for development)

py -m flask --app tmmgram run 

Deployment

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.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published