-
Notifications
You must be signed in to change notification settings - Fork 9
* Getting Started
Emilie Hester edited this page Mar 28, 2017
·
6 revisions
-
npm installfrom the root directory -
update the
server/config/config.jsondevelopment object with your database settings
- the production object is setup for deployment to Heroku
- we recommend adding
config.jsonto your.gitignoreuntil you're ready for deployment
-
npm run db:setupto run database migrations and seeders -
register a new OAUTH application w/ GitHub (link)
- homepage url: http://127.0.0.1:3000
- authorization callback url: http://127.0.0.1:3000/auth/github/callback
- add a
github-config.jsfile to yourserver/configfolder
- verify that this file is in your
.gitignore
- add the following to
github-config.js
var github = {
clientID: 'UPDATE ME WITH YOUR GITHUB CLIENT ID',
clientSecret: 'UPDATE ME WITH YOUR GITHUB CLIENT SECRET',
callbackURL: 'http://127.0.0.1:3000/auth/github/callback'
};
module.exports = github;
server/githubAuth.jsis using ^ these credentials
-
use
npm startto start the server - you may also usenpm run start:devto start the server w/ nodemon -
access the server locally through
http://127.0.0.1:3000
- if you have issues loading the stylesheet, verify that you're using
httpand nothttpsin the address bar
For more info on setting up the database see: database