- Download and install PostgreSQL 9.6 to your local machine, which will be used for your development environment
- Start PostgreSQL database from your command line, and set up your database
- Set the environment variables that are required for the project. To do this, open up your bash command line, and run
setx <ENV_VAR> <VALUE>
(e.g.setx PGUSER "postgres"
). - PGUSER - This is the username that you use to log into your PostgreSQL sandbox on your machine. It is probably 'postgres'
- PGDATABASE - This is the database that you created in your PostgreSQL sandbox
- PGPASSWORD - This is the password that you use to log into your PostgreSQL sandbox on your machine
- PGHOST - This is the host for your PostgreSQL sandbox, so you can connect to it from Shareff
- PGPORT - This is the port that your PostgreSQL sandbox is running on
- JWT_SECRET - This is your JSON Web Token secret, so you can sign JWTs for authentication
- GOOGLE_MAPS_API_KEY - This is the API key for Google Maps. I'll message it to everyone
- INFO_EMAIL_USERNAME - This is the email username being used for sending our email notifications.
- INFO_EMAIL_PASSWORD - This is the passward for the email account we are using to send notifications.
- STRIPE_API_KEY - This is the stripe token, set the value as this: sk_test_rFLCN6uHUJ4YAbD7U3xRCi9Y
- There are 3 scripts:
npm start dev
- Sets theNODE_ENV
environment variable todevelopment
npm start prod
- Sets theNODE_ENV
environment variable toproduction
npm start test
- Currently does nothing (TODO)
- https://www.paypalobjects.com/en_US/vhelp/paypalmanager_help/credit_card_numbers.htm
- Or use this Visa number: 4111111111111111