Solution for Assignment 2 of the Udacity Full Stack nanodegree. The task is to create an application that provides a list of items within a variety of categories as well as provide a user registration and authentication system
Download Python 2.7 - required to run the python flask web application. Documentation available here
Install Flask and SQLAlchemy
pip install Flask
pip install SQLAlchemy
The creation of the database and categories are only required for the initial install. To create the Sqlite database run:
python database_setup.py
Database contains two tables, Category with id and title columns and Items with id, title, description, category_id, category and date_time. To populate categories run:
python create_categories.py
If you would like to add your own categories, edit the list in the file create_categories.py
To run the web app:
python catalog.py
Open a browser and go to http://localhost:5000 to view the application.