If you are installing this to a local host/machine, you will need the following software installed on your computer:
-
an IDE (editor) of your choosing such as VS-Code
-
Sign up for a free account and get an API key from Shippo
- Under main page go to Settings -> Integration -> API and generate a Live Key
-
Choose a gmail account to send your task notifications out. You will need the email address and password below.
- Under Settings -> Security -> Less Secure App Access -> turn on "less secure access" to allow the program to use this email
-
Run
npm install
in your editor of -
Create a
.env
file at the root of the project and paste this line into the file:SHIPPO_API_KEY=<your SHIPPO API Key> SERVER_SESSION_SECRET=<a random phrase or string to encrypt your sessions> REACT_APP_EMAIL_USER=<gmail address you want to send emails> REACT_APP_EMAIL_PASSWORD=<password for the gmail account> CLIENT_URL=<address where the app is hosted> RESET_PASSWORD_KEY=<another random key that will encrypt lost password tokens>
Here's a site that can help you: [https://passwordsgenerator.net/]
Before pushing to Heroku, run npm run build
in terminal. This will create a build folder that contains the code Heroku will be pointed at. You can test this build by typing npm start
. Keep in mind that npm start
will let you preview the production build but will not auto update.
- Start postgres if not running already by using
brew services start postgresql
- Run
npm start
- Navigate to
localhost:5000
- Create a new Heroku project
- $ heroku create
- Link the Heroku project to the project GitHub Repo
- $ git push heroku master
- Create an Heroku Postgres database
- $ heroku addons:create heroku-postgresql:hobby-dev
- Connect to the Heroku Postgres database from Postico
- $ heroku pg:push critical_coordination DATABASE_URL
- Add environment variables for the following:
- SHIPPO_API_KEY=
- SERVER_SESSION_SECRET=
- REACT_APP_EMAIL_USER=
- REACT_APP_EMAIL_PASSWORD=
- CLIENT_URL=
- RESET_PASSWORD_KEY=