This is a REST API built to be used locally on your machine to manage subscribers from your mailing list (MongoDB Collection) and send Broadcast Emails using the Postmark API.
- Retrieve Subscribers Collection from MongoDB.
- Send Preview Email to one Address. Could be your own, or postmark's test address.
- Send Broadcast Email to all Subscribers of MongoDB Collection.
- Switch between MongoDB Collections.
- Vanilla JavaScript
- HTML
- Bootstrap
- Axios
- Express
- Mongoose
- MongoDB
- Node.js
- Postmark
git clone https://github.com/LaSav/postmark-interface
npm install
npm run server
Create a .env file in the root directory and add the variables:
NODE_ENV = development
PORT = 3000
MONGO_URI = Your MongoDB URI
POSTMARK_KEY = Your Postmark API key
- GET Subscribers 👌
- POST Broadcast 👌
- GET Broadcasts 👌
- GET Subscribers 👌
- POST Broadcast 👌
- GET Broadcasts 👌
- Errors 👌
- Send Preview 👌
- Input Template Number Validation
- Select between MongoDB Collections
REST API to Send Transactional Emails With Postmark and Node.js