You can access the live version of this project here.
This is a simple viral waitlist app. Anybody can create a product. And they can share the URL to the product so that people can join the waitlist. Any person after joining the waitlist will get an email. The person who joined the waitlist can also refer to other people using the referral link. Whenever someone uses a referral link to signup, both persons will receive an email. Anybody can view the leaderboard and the other details of the product.
The app uses React for the frontend.
The app uses Express, MongoDB for the backend.
The app uses LocalStorage of the browser.
The app uses Heroku.com for hosting the Express server.
The app uses Surge.sh for hosting the React client.
The app uses MLab.com for hosting the MongoDB database.
The app uses Mailgun for sending emails.
To use this application locally, follow the next steps.
echo "
REACT_APP_SERVER_URL=http://localhost:5000
" > react-client/.env
echo "
MONGO_URI=mongodb://localhost:27017/viralwaitlist
PORT=5000
MAILGUN_DOMAIN_NAME=<MAILGUN_DOMAIN_NAME>
MAILGUN_API_KEY=<MAILGUN_API_KEY>
MAILGUN_FROM=\"Viral Waitlist <[email protected]>\"
CLIENT_URL=http://localhost:3000
" > express-server/.env
cd express-server
yarn install
yarn dev
cd ../react-client
yarn install
yarn start