Code Monkey home page Code Monkey logo

item-catalog-app's Introduction

Project: Build an Item Catalog Application

Part of Udacity Full Stack Web Developer Nanodegree Program

Project Overview

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.

Project's files:

database_setup.py - creates the sqlite database and related tables server.py - runs the web app populate_database.py - inserts values to the tables created by database_setup.py auth.py - authentication function and helper function to work with users static - for css styles templates - for HTML templates

Requirements

Run

  • Start Terminal and navigate to the project folder.
  • cd to the vagrant directory
  • Launch the Vagrant VM inside Vagrant sub-directory: using command: vagrant up and log in command vagrant ssh
  • Run python3 database_setup.py to create sqlite database and tables.
  • To populate the database run populate_database.py
  • Run python3 server.py to run the application.
  • In a web browser connect to the localhost:8000
  • If your are an authenticated user (Google or Facebook sign in), you can manage categories and items.

How to use Google sign in

* Go to [Google APIs Console](https://console.developers.google.com/apis)
* Sign up or Login.
* Go to Credentials.
* Select OAuth Client ID.
* Select Web Application.
* Enter the name of your project 'My Project'.
* Set the authorized JavaScript origins `http://localhost:8000`, save changes.
* Copy the Client ID and paste it into login.html in your templates folder.
* On the consol download JSON file.
* Rename JSON file to client_secrets.json
* Put JSON file in your project's directory.
* Run your application.

item-catalog-app's People

Stargazers

 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.