Good things come in pairs
Looking for an awesome pet like a flying dog? Well look no further! At chiMEra, we create fantastical creatures from the infamous taco cat to lazer sharks.
To setup this app, you'll need to take the following steps:
-
Fork and clone this repo.
-
cdinto your clone andrm -rf .gitto remove the chiMEra git tracking -
Update project name and description in
package.jsonfile -
git initto start your own git tracking -
npm install, oryarn install- whatever you're into -
Create two postgres databases:
chiMEraandchiMEra-test(you can substitute these with the name of your own application - just be sure to go through and change thepackage.jsonandserver/db/db.jsto refer to the new names)- By default, running
npm testwill useboilermaker-test, while regular development usesboilermaker
- By default, running
-
Create a file called
secrets.jsin the project root- This file is
.gitignore'd, and will only be required in your development environment - Its purpose is to attach the secret env variables that you'll use while developing
- However, it's very important that you not push it to Github! Otherwise, prying eyes will find your secret API keys!
- It might look like this:
process.env.GOOGLE_CLIENT_ID = 'hush hush'; process.env.GOOGLE_CLIENT_SECRET = 'pretty secret'; process.env.GOOGLE_CALLBACK = '/auth/google/callback'; - This file is
-
To use OAuth with Google, complete the step above with a real client ID and client secret from Google
- You can get them here: https://console.developers.google.com/apis/credentials
npm run start-dev will make great things happen!
If you want to run the server and/or webpack separately, you can also npm run start-server and npm run build-client.
From there, just follow your bliss.
To checkout what the finished product looks like go to https://chimera123.herokuapp.com/. You can also see some admin functionalities by logging in as email: jim@jim.com pw: jim