/OjalaThreadsEmailCollector

A REST API to collect emails for the purpose of sending out newsletters

Primary LanguageJavaScriptMIT LicenseMIT

OjalaThreadsEmailCollector

GitHub

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.

preview

Getting Started

Prerequisites

Installing

  1. Clone the repository git clone https://github.com/GabeKuslansky/OjalaThreadsEmailCollector
  2. Within the repository execute npm i
  3. Run npm run build

Developing

Start the instance by running npm start

Deployment

  1. Run npm run build
  2. Put the built files onto a server and run it using a Node process monitor/manager such as PM2
  3. Have a service which can make a POST request to yourwebsite.com/email with the headers name and email.
  4. 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.

Built With

Authors

License

This project is licensed under the MIT License. See LICENSE for details.