summaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorMarjukka Jämbäck <mjamback@local>2023-11-21 11:16:17 +0200
committerMarjukka Jämbäck <mjamback@local>2023-11-21 11:16:17 +0200
commit2ebfcf29c84b84999b76ff13150ba5a13fd3cac1 (patch)
tree12fcf0504e9682b279cbadd724f026d6cba01b6e /README.md
parentd13d4860f3d5b51d659379aa8a38742bfe49bf37 (diff)
Make it poetry project and udate install instructions
Diffstat (limited to 'README.md')
-rw-r--r--README.md14
1 files changed, 10 insertions, 4 deletions
diff --git a/README.md b/README.md
index 75f5fd5..cc513b2 100644
--- a/README.md
+++ b/README.md
@@ -2,11 +2,17 @@
Kyselmä - kysele, vastaile ja tutki tuloksia
TO GET IT RUNNING:
-- Install flask, psycopg, postresql, sqlalchemy (as in course material)
+ Install postgresql for local user & get it running
+- $ wget https://github.com/hy-tsoha/local-pg/raw/master/pg-install.sh
+- $ bash pg-install.sh
+- $ postrgres &
+ Clone the source, get tables ready & install poetry dependencies
- $ git clone https://github.com/triionhe/kyselma.git
-- $ psql -U postgres < SCHEMA.sql (Be careful with '-U postgres' or edit app.py!)
-- $ SECRET_KEY=923987295 flask run
-
+- $ cd kyselma
+- $ psql < SCHEMA.sql
+- $ poetry install
+ Start the app in poetry virtual environment
+- $ SQLALCHEMY_DATABASE_URI="postgresql:///$USER" SECRET_KEY=923987295 poetry run flask run
DONE:
- Voi lisätä kyselyn