Project of the Udacity Fullstack Developer Nano Degree Program. To develop an application that provides a list of items within a variety of categories as well as provide a user registration and authentication system. Registered users will have the ability to post, edit and delete their own items.
User knows and can execute Python 2, Vagrant, VirtualBox and have access Google and or Facebook accounts.
The application that provides a list of wines within a variety of categories, a brief description of the catergory, as well as provide a user registration and authentication system. Selecting a specific category shows all the wines stored in the database for that category, the name, origin, tasting notes and price of the wines. To create a new or to edit categories or wines, the user will have to log in and be authenticated from a third party application, either with a Google or Facebook account. Only the creator of a particilar category or wine will be able to delete the category or wine.
- database_setup.py
- the database setup (to store and organize the information)
- lotsofwines.py
- python file to populate the database
- application.py
- python file with the Flask Application, including authentication/authorization to allow users to login before making changes
- templates folder
- contains HTML (structure of the pages)
- static folder
- contains CSS (the style of the pages) and images
- fb_client_secrets
- api client ID and Key for user to login via Facebook account
- client_secrets
- api client ID and Key for user to login via Google account
- Download the project file.
- Unzip the project file to folder and put it in the directory which is shared with your virtual machine.
- Launch the Vagrant VM (by typing vagrant up in the directory fullstack/vagrant from the terminal).
- From the terminal, to load the data, cd into the virtual machine directory and use the command: python database_setup.py
- It is optional to populate the database with the command: python lotsofwines.py
- Run the application with the command: python application.py
- Access the application by visiting http://localhost:8000 locally on your browser.
- images from various Free Stock images websites
- wines information from wikipedia and https://sg.epicurio.co
Free for distribution
No liability will be accepted by the author.