Giter Club home page Giter Club logo

udacity-catalog-project's Introduction

Music Catalog Project

The purpose of this project was to develop a catalog web application that provides for a variety of categories as well as a user registration and authentication system. Users who login with Facebook or Google Plus can post, edit, and delete their own posts. Logged in users can not modifty posts that don't belong to them in any way.

Files/Folders

templates

This folder contains all of the html files for the web application

static

This folder contains the css file for the web application

database_setup.py

This file containts the database scheme. Creates 3 tables titled Users, Genres, and Songs.

genre_populator.py

This file contains code necessary to populate the database. This is provided to make it easier to see how the application functions

client_secrets.json/fb_client_secrets.json

These files contain the information necessary to implement Google Plus and Facebook oAuth functionality.

project.py

Contains the Flask application. All code tying the sql database and html together is found here.

How to Run

  1. Download Vagrant VM from Udacity
  2. Open Terminal and navigate to vagrant folder
  • Type vagrant up
  1. SSH in to the Vagrant VM by typing vagrant ssh
  2. Before going any further run the following commands to make sure you have the correct version of Flask installed on your VM.
    • Type sudo pip install werkzeug==0.8.3
    • Type sudo pip install flask==0.9
    • Type sudo pip install Flask-Login==0.1.3
  3. Type in cd /vagrant/catalog to navigate to the project folder
  4. Type in python database_setup.py to create the database
  5. Type in python genre_populator.py to populate the database. Note that no users will be able to delete the entries created by this script since they are attributed to a sample user
  6. Type in python project.py to start the server
  7. Access and test the application locally by visiting http://localhost:5000 in a web browser

udacity-catalog-project's People

Contributors

sctribe avatar

Watchers

James Cloos avatar  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.