lamtonylam / haalarimerkkidex

Tietokannat ja web-ohjelmointi harjoitustyö
https://haalarimerkkidex.fly.dev/
0 stars 0 forks source link

tsoha2024

Original app idea (not everthing was implemented and some functionalities changed during the course of development):

State of the app on second deadline 7.4.2024

Final deadline

The app is functional no larger issues are present. After the second deadline no major features were implemented, and the commits largely included refactorings and minor UI changes.

Using app on the web

Note! Please allow up to 10 seconds for the fly.io instance to wake up from sleep!

https://haalarimerkkidex.fly.dev/

Running locally

Prerequisites:

Clone the repository
git@github.com:lamtonylam/haalarimerkkidex.git

Navigate into the correct folder containing the repository
cd haalarimerkkidex

Create a .env environment file with the following variables.
DATABASE_URL=<local-postgres-address>
SECRET_KEY=<your-secret-key>
master_key=<your_key>
FLY_DEPLOYMENT=False

Enable virtual environment
python3 -m venv venv
source venv/bin/activate

Install dependencies
pip install -r requirements.txt

Create database tables
psql < schema.sql
Then exit PSQL

Run Flask app
flask run
For continuous app builds run this command instead
flask run --debug