Final project for Lighthouse Labs bootcamp. Not intended for production.
- John Webster - Front End, some Back End - RandomHilarity
- Lucas Wilson - Back End - willow123red
This app requires Charitabl for front-end operations. See https://github.com/RandomHilarity/charitabl.
- body-parser: 1.19.0
- cors: 2.8.5
- dotenv: 8.1.0
- express: 4.17.1
- helmet: 3.21.1
- nodemon: 1.19.3
- pg: 7.12.1
- stripe: 7.9.1
Use the psql -U development command to login to the PostgreSQL server with the username development and the password development.
Create a database with the command CREATE DATABASE charitabl;.
Copy the .env.example file to .env.development and fill in the necessary PostgreSQL configuration. The node-postgres library uses these environment variables by default.
PGHOST=localhost PGUSER=development PGDATABASE=scheduler_development PGPASSWORD=development PGPORT=5432
Seeding the database. Run the development server with npm start.
Make a GET request to /api/debug/reset with curl http://localhost:8080/api/debug/reset.
Use the browser to navigate to http://localhost:8001/api/debug/reset.
You will need to obtain your own api keys from Stripe to make a donation in the development environment.
Visit https://stripe.com/docs/keys and sign up for your developer keys. You will need both the publishable and secret key. Use the .env.example file to update the .env.development file accordingly.
You can use credit card number 4242 4242 4242 4242 with any post dated expiry date and ccv combination to test.