Simple Flask Scheduler project
This project was created as a Homework for SkillFactory. Module E9. PWS-6.
What you need to do for correctly start using it?
- Clone or download my project
git clone [email protected]:dannycrief/flask_scheduler.git
- Go to project folder
cd flask_scheduler
- Create .env file and put code below in it
FLASK_ENV=development
FLASK_DEBUG=True
SECRET_KEY='your-secret-key'
FLASK_APP=app/routes.py
DATABASE_URL='postgresql://user:password@localhost:5432/db-name'
PYTHONPATH=.
POSTS_PER_PAGE=3
- Create alembic migrations. Initialize alembic
PYTHONPATH=. alembic init alembic
- Commit Changes
PYTHONPATH=. alembic revision --autogenerate -m "initial migration"
- Confirm migrations
PYTHONPATH=. alembic upgrade head
- Modify alembic config in alembic.ini
sqlalchemy.url = postgresql://user:password@localhost:5432/db-name
- Build Docker
docker-compose build
- Fist of all up postgres container
docker-compose up postgres
- And up all containers
docker-compose up