Powwow App README.md
Run npm install -
Opening the Web-app from root: Terminal Window #1: cli: nodemon server/server.js - runs on localhost:9000 Terminal Window #2: cli: npm start - react app runs on localhost:3000 - it will automaticall open the browser and load for you. proxy is set to 9000 to connect with the server.
Boiler-Plate setup: Looking at Oksana's models/routes - I inserted the following to match: Actions - 1:1 for each route/model Reducers - 1:1 for each route/model/action
App Entry - src/index.js App CSS Entry - src/index.css App '/' starting route - src/containers/App/index.js Reducer - src/reducers/index.js Actions - src/actions/* Server Entry - server/server.js port 9000
Database config setup steps:
{
"development": {
"database": "powwowdb",
"host": "127.0.0.1",
"dialect": "postgres"
}
}
Setting up Facebook OAuth, please follow the following steps to get this working on your computer:
Setup an account via 'https://developers.facebook.com/'
Log-in at https://developers.facebook.com/
Click on My Apps
Click Dashboard
Click Settings
Click App Review
Click + Add Product
The above Steps were all within the browser, the following steps are within the code:
{
FACEBOOK_APP_ID: "facebook app id",
FACEBOOK_APP_SECRET: 'facebook app secret',
USER_TOKEN: 'Okay to leave blank for now',
APP_TOKEN: 'Okay to leave blank for now',
callback: 'http://localhost:9000/auth/facebook/callback'
}
Ensure you have pasted the APP ID and APP SECRET to your config file, also double check the file is not part of your commit.
Drop your database.
Go to http://localhost:9000/auth/facebook
Again go to http://localhost:9000/auth/facebook
All Steps complete for now.