GithubHelp home page GithubHelp logo

tobiasziegler / fsnd-p4-item-catalog Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 50 KB

Project 4 (Item Catalog) for Udacity's Full Stack Web Developer Nanodegree

Python 69.97% HTML 25.37% CSS 4.66%

fsnd-p4-item-catalog's Introduction

Item Catalog

This web app accesses a database of categorised items, allowing the public to browse the catalog, and allowing authorised users to create, update and delete items and categories. I've created this program as part of the Full Stack Web Developer Nanodegree.

Getting Started

  1. Download, clone or fork this repository to an appropriate location on your server or virtual machine.

  2. Ensure you have the required software dependencies:

    1. Python 3

    2. PostgreSQL

    3. python-slugify (e.g., pip3 install python-slugify)

  3. Create or download a google_client_secret.json file in the project directory containing OAuth credentials for the app. If I haven't supplied you with my credentials for the app, then you need to create your own via the Google Developer Console as follows:

    1. Authorized origins should include http://localhost:5000 (or modify if not running locally)

    2. Authorized redirect URIs should include http://localhost:5000/postmessage

    3. If you create your own credentials, also update the app ID in login.html

  4. Create the database: psql -d catalog

  5. Add sample data to the database - from the project directory, run python3 populate_database.py.

  6. Run the app using python3 application.py.

  7. Load the app locally at http://localhost:5000.

API endpoints

There are three API calls available to retrieve data in JSON format:

  1. /api/categories returns a list of all categories

  2. /api/categories/<category_slug> returns all items in the specified category

  3. /api/categories/<category_slug>/items/<item_slug> returns the specified item

fsnd-p4-item-catalog's People

Contributors

tobiasziegler avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.