Skip to content

API to manage subscriptions. Built with Express, PostgreSQL, drizzle-orm, AWS SES, react-email and zod.

License

Notifications You must be signed in to change notification settings

sm-sami/subscriptions-api

Repository files navigation

subscriptions-api

Easy to use API to manage subscriptions.

API Documentation

POST /user/create

Creates a new user and send a verification email.

verification-mail

GET /user/verify

Verifies the user's email. Used in the verification email.

DELETE /user/remove

Deletes the user, used to unsubscribe from the mailing list.

GET /all-verified

Returns all verified users. It is an admin route, requires AUTH_TOKEN.

DELETE /all-unverified

Removes all unverified users. It is an admin route, requires AUTH_TOKEN.

Running the app

Install the dependencies

pnpm install

Run the development server:

pnpm dev

Built with

About

API to manage subscriptions. Built with Express, PostgreSQL, drizzle-orm, AWS SES, react-email and zod.

Resources

License

Stars

Watchers

Forks