Skip to content

Latest commit

 

History

History
42 lines (26 loc) · 1.28 KB

README.md

File metadata and controls

42 lines (26 loc) · 1.28 KB

Catalog Web App

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

Install

Download Python 2.7 - required to run the python flask web application. Documentation available here

Dependencies

Install Flask and SQLAlchemy

pip install Flask
pip install SQLAlchemy

Create Database and Populate

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

Run Flask Web App

To run the web app:

python catalog.py

Open a browser and go to http://localhost:5000 to view the application.