Kelp is an application to view and review kelp-related businesses. Users are able to add, update, and remove businesses from the directory, as well as add and delete reviews.
- Clone the repo
git clone https://github.com/samuelrkramer/Kelp.git
-
Copy the .env.example file and change to your proper settings
-
Setup your Postgres user with
CREATEDB
according to your .env settings -
Install node dependencies in BOTH the
backend
andfrontend
directories:
npm install && npm install -D
- Run startup scripts in BOTH the
backend
andfrontend
directories:
npm start
-
Set up your Heroku account and install the Heroku CLI
-
Create a new application in your Heroku dashboard, then go to "Resources" and "Find more add-ons" in order to add the free "Heroku Postgres".
-
In the project directory, log into Heroku in your terminal:
heroku login
- Set up git to use Heroku as a remote:
heroku git:remote -a <app-name>
-
Set your environment variables in the Heroku dashboard under "Settings" and "Config Vars". You will have to click to "reveal config vars".
- At a minimum, you will need to set
JWT_SECRET
andJWT_EXPIRES_IN
- At a minimum, you will need to set
-
Push the master branch to Heroku:
git push heroku master
- Migrate and seed the database:
heroku run npm run sequelize db:migrate
heroku run npm run sequelize db:seed:all
At this point, your clone should be up and running!