The web interface for the Movement Vitamins application.
- Create the Dockerfile for the postgres service
- % cd ./flask_recipe_app/web/
- % python create_postgres_dockerfile.py
- % cd ..
- Build and run the Docker containers
- % docker-compose build
- % docker-compose up -d
- Create or re-initialize the database
- % docker-compose run --rm web python ./instance/db_create.py
To view in the web run
- % docker container ls
and then type the address of the flask app into a web browser of your choosing
- Flask - web framework
- Jinga2 - templating engine
- SQLAlchemy - ORM (Object Relational Mapper)
- Flask-Bcrypt - password hashing
- Flask-Login - support for user management
- Flask-Migrate - database migrations
- Flask-WTF - simplifies forms
- itsdangerous - helps with user management, especially tokens
This application is written using Python 3.6.1. The database used is PostgreSQL.
Docker is the recommended tool for running in development and production.
In the top-level folder: % nose2
- create models for database in web/project/models.py
- create a script for creating postgresDB in web/instance/create_db.py
- change API to give and take user movement vitamin data
- remove recipe templates and add in davids templates
- create superuser and superuser views (for Cory) (change admin view)
- change add_recipe to add new user (for cory)
- have Justin create banners for site header and logo