The purpose of this project is to store emails in a .csv file from a POST request, so that newsletters can be sent out to customers. While this is a REST API for Ojala Threads, anyone this slightly rework this tool to gather emails for their own needs.
- Clone the repository
git clone https://github.com/GabeKuslansky/OjalaThreadsEmailCollector
- Within the repository execute
npm i
- Run
npm run build
Start the instance by running npm start
- Run
npm run build
- Put the built files onto a server and run it using a Node process monitor/manager such as PM2
- Have a service which can make a POST request to yourwebsite.com/email with the headers name and email.
- Set up an nginx config to require an authorized connection to access the page. Make sure to allow POST requests to /email, but require authorized access to /delete so strangers can't delete your emails.
- Express - Route handler
- Gabe Kuslansky - Main Developer
This project is licensed under the MIT License. See LICENSE for details.