Code Monkey home page Code Monkey logo

dreamapp's Introduction

DreamApp

About the Dream App:

Built as part of the Udacity's Full Stack Nanodegree this is a RESTful web application utilizing the Flask framework which accesses a SQL database that populates dream categories and their items. OAuth2 provides authentication for further CRUD functionality on the application.

Getting Set Up:

System Requirements:

  1. Python3
  2. Vagrant
  • This is the software that configures the Virtual machine
  1. Virtual Box
  • This is the software that actually runs the virtual machine
  • Allows you to share files between the VM filesystem and your host computer
  • Install the platform package for your OS
  • Don't launch after installing, Vagrant handles this for you
  1. Udacity Vagrant Machine

Project Setup:

  1. Install Python3
  2. Install Vagrant
  3. Install Virtual Box
  4. Download or clone the Udacity Vagrant Machine repository and place it in the vagrant directory

Launch the VM:

  1. Inside the Vagrant directory downloaded from the full-stack-nanodegree-vm run this command in your terminal vagrant up
  2. Log in to the VM vagrant ssh
  3. Change directory to the files and look around cd /vagrant' 'ls'

Set Up the Database:

  1. Load the data in the local database python database_setup.py
  2. Populate the database python dreamFiles.py

Set up Google Login:

  1. Log in to Google Dev Console
  2. Go to Credentials
  3. Select Create Crendentials > OAuth Client ID
  4. Select Web Application
  5. Enter name 'Dream Catalog'
  6. Under 'Authorized Javascript Origins add' http://localhost:5000/
  7. Authorized redirect URIs = 'http://localhost:5000/login' && 'http://localhost:5000/gconnect'
  8. Click create client ID
  9. Download JSON and save it as "client_secret.json" in the root directory (replace the existing)
  10. In main.html replace the line "data-clientid="#####.apps.googleusercontent.com" so that it uses your Client ID from the web applciation.

Set up Facebook Login:

  1. Log in to Facebook Dev Console
  2. Go to Dashboard
  3. Click Add Product on the bottom left of the page
  4. Add facebook login
  5. Click Client OAuth
  6. Add http://localhost:5000/ to the Valid OAuth redirect URIs section
  7. Replace app_id and app_secret in fb_client_secrets.json file

Run the Application:

  1. From the vagrant direcotry inside the VM python project.py
  2. Navigate to http://localhost:5000/ in your browser

Exiting the VM

To exit type control + D

dreamapp's People

Contributors

megdollar 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.