Skip to content

JustinMMcHenry/Movement-Vitamins-Web

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Overview

The web interface for the Movement Vitamins application.

How to Run (Development)

  1. Create the Dockerfile for the postgres service
  • % cd ./flask_recipe_app/web/
  • % python create_postgres_dockerfile.py
  • % cd ..
  1. Build and run the Docker containers
  • % docker-compose build
  • % docker-compose up -d
  1. 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

Key Python Modules Used

  • 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.

Unit Testing

In the top-level folder: % nose2

TODO

  • 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

About

A website and API for the Movement Vitamins project

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 67.1%
  • HTML 31.6%
  • Other 1.3%