This project was created for the Node with React: Fullstack Web Development course on Udemy.
The application is a web app using React, Express, and MongoDB, as well as the Stripe, OAuth2, and SendGrid APIs. Users can log in using their Google account, buy credits with their credit card, and create simple surveys to be emailed to a list of recipients. The recipients' responses are collected and displayed in a dashboard that can be viewed by the user.
You can see my heroku deployment of this application here.
To run this application, you need a SendGrid account with API keys, an account with a MongoDB server or a local MongoDB server, Google OAuth client keys, and a Stripe account with API keys.
Copy the contents of config/prod.js
to a new file in the config
directory called dev.js
, and replace all the values in the object with your values. redirectDomain
should be "http://localhost:3000"
, and cookieKey
should be a random string.
In the project directory, add your API keys to dev.js and run:
npm install
to install the necessary packages, then run:
npm run dev
To test the Add Credits feature, click the Add Credits button, enter any properly formatted information in the fields, and 4242 4242 4242 4242
in the Card Number field.