This is a small project that will help link up the multiple services that js.la uses to help automate some of the more administative proccesses.
You will need node.js. Then run
$ npm install
Now you should have all the dependencies needed to run the api.
Running the api is just as simple as the install proccess. Do
$ npm start
Then test to see if everything is working properly by pinging the server
$ curl -X GET http://localhost:3030/ping # PONG
This is using dotenv and has a few pieces that need to be configured. Here is a sample configuration.
# basic optional stuff
PORT=9001
NODE_HOSTNAME=js.la
# this is to obscure webhook urls
HASH=1234
# mailchimp
MAILCHIMP_API_KEY=supersecret
MAILCHIMP_LIST_ID=listtoaddemailsto
- tito webhook url
- mail chimp intergration
- api
This will subscribe the email given to this endpoint to the mailchimp list specified.