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.
- This is the software that configures the Virtual machine
- 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
- Install Python3
- Install Vagrant
- Install Virtual Box
- Download or clone the Udacity Vagrant Machine repository and place it in the vagrant directory
- Inside the Vagrant directory downloaded from the full-stack-nanodegree-vm run this command in your terminal
vagrant up
- Log in to the VM
vagrant ssh
- Change directory to the files and look around
cd /vagrant' 'ls'
- Load the data in the local database
python database_setup.py
- Populate the database
python dreamFiles.py
- Log in to Google Dev Console
- Go to Credentials
- Select Create Crendentials > OAuth Client ID
- Select Web Application
- Enter name 'Dream Catalog'
- Under 'Authorized Javascript Origins add'
http://localhost:5000/
- Authorized redirect URIs = 'http://localhost:5000/login' && 'http://localhost:5000/gconnect'
- Click create client ID
- Download JSON and save it as "client_secret.json" in the root directory (replace the existing)
- In main.html replace the line "data-clientid="#####.apps.googleusercontent.com" so that it uses your Client ID from the web applciation.
- Log in to Facebook Dev Console
- Go to Dashboard
- Click
Add Product
on the bottom left of the page - Add
facebook login
- Click Client OAuth
- Add
http://localhost:5000/
to the Valid OAuth redirect URIs section - Replace app_id and app_secret in fb_client_secrets.json file
- From the vagrant direcotry inside the VM
python project.py
- Navigate to http://localhost:5000/ in your browser
To exit type control + D