As part of the Full Stack Web Developer Nanodegree with Udacity
This application is a catalog listing items in various categories. It includes user registration and authentication system. The web app allows logged in users to add new items, edit and delete the one they created.
- Authentication and authorization with Google Sign-In OAuth API
- CRUD via SQLAlchemy and Flask
- JSON endpoints
- Install Vagrant and VirtualBox
- Download/Clone the Vagrant VM file fullstack-nanodegree-vm
- Launch Vagrant in the terminal with command
vagrant up
- Run the virtual machine with
vagrant ssh
- Then navigate to the shared directory
cd /vagrant
- Navigate to fullstack-nanodegree-vm
- Run the database_setup.py file to create the database (if you are not using the database already populated with filling values)
python database_setup.py
- Run the application:
python application.py
-
In the browser, open http://localhost:8000/ and use the interface to navigate the web app
-
JSON request can be made at URL http://localhost:8000/catalog.json/ for all categories and items in the database. To output a single item, add the item id where it stated insert_id#_here at the following link: http://localhost:8000/catalog/item/insert_id#_here/JSON
Python pycodestyle (formally pep8)