Item Catalog
https://fsnd-catalog-pro.herokuapp.com/
Project 'Catalog' for Udacity Fullstack Nanodegree program. Basic manager for categories and items with login functionality (Google Sign in).
- Implement and learn CRUD functionality.
- Connect application to the database.
- Implement Sign In with google.
- You will require a
client_secrets.json
file from https://console.developers.google.com/ for OAuth2 authentication to work. It should be placed in the directory whereapp.py
is located. - Set environment variables with
source .env
. - Run
database_setup.py
to create the database. - Run
database_seed.py
to initially populate database (optional step). - Start application by running
flask run
from the directory whereapp.py
file is located.
- logging in:
/login
. - logging out:
/logout
. - main page:
/
or/catalog
. - create category:
/category/new
- only logged in users. - edit category:
/category/<category_id>/edit
- only logged in owner of the category. - delete category:
/category/<category_id>/delete
- only logged in owner of the category. - show category:
/category/<category_id>
. - new item:
/items/new
- only logged in users. - edit item:
/category/<category_id>/items/<item_id>/edit
- only logged in owner of the item. - delete item:
/category/<category_id>/items/<item_id>/delete
- only logged in owner of the item. - show item:
/category/<category_id>/items/<item_id>
. - JSON endpoint, category list:
/categories/JSON
. - JSON endpoint, items list:
/category/<category_id>/items/JSON
.
You can log in/out, execute CRUD operations or get JSON responses using directly the routes listed above. CRUD operations and logging in/out can also be done by navigating the website and using buttons provided.