Skip to content

kjg531/UFS-P3

Repository files navigation

CatalogR

Preparations

This app uses

These dependencies must be installed before you can run the app. The easiest way to do so is by using pip. Simply run the following commands:

pip install Flask
pip install SQLAlchemy
pip install Flask-GoogleLogin

As the app uses Google for authentication as the next step you have to obtain a client id and client secret from Google:

  1. Go to the Google Developer Console.
  2. Create a new project.
  3. Go to APIs & auth - Consent screen and select a valid Email address.
  4. Go to APIs & auth - Credentials and create a new Client ID.
  5. Enter http://localhost:8000/oauth2callback/ in the Authorized redirect URIs field.
  6. Open the project.py file and replace the <Client ID> and <Client Secret> placeholders with your client id and your client secret.

Next you have to create the categories. To do so run

python database_setupy.py

Run the app

To start the app simply run

python project.py

Remarks

  • The app uses Jasny Bootstrap's file input widget for the picture upload.
  • The pictures are stored in the database.
  • The app uses nonces to prevent cross-site request forgeries (CSFR) when creating, updating and deleting items.
  • The app offers two API endpoints:
    • JSON: /catalog.json
    • XML: /catalog.xml
  • The app uses a (slightly modified) dashboard.css stylesheet from Bootstrap's Dashboard sample page.
  • The app is not optimized for small devices (smartphones etc.).

About

Udacity Full Stack Development Nanodegree- Project 3

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published