Simon Bowie ce3a2fcf24 some stylistic changes to match wireframes | pirms 3 gadiem | |
---|---|---|
nginx-conf | pirms 3 gadiem | |
web | pirms 3 gadiem | |
.env.template | pirms 3 gadiem | |
.gitignore | pirms 3 gadiem | |
README.md | pirms 3 gadiem | |
docker-compose.prod.yml | pirms 3 gadiem | |
docker-compose.yml | pirms 3 gadiem |
To build the database run:
docker exec -it python python
from app import db, create_app, models
db.create_all(app=create_app())
For creating database and user:
CREATE DATABASE toolkit;
CREATE USER 'flask'@'%' IDENTIFIED BY '[PASSWORD]';
GRANT CREATE, INSERT, UPDATE, SELECT, DELETE ON toolkit.* TO 'flask'@'%';