Skip to content

Custom form to add subscriber from email to ConvertKit using NextJs and Effect・Newsletter sandromaglione.com

Notifications You must be signed in to change notification settings

SandroMaglione/convertkit-nextjs-newsletter-form

Repository files navigation

How to implement a Custom Newsletter form with ConvertKit and Effect

GitHub: SandroMaglione Twitter: SandroMaglione

Learn how to use Effect to perform a request to subscribe a user to your newsletter on ConvertKit:

  • Define component to collect user email
  • Perform API request to sign up the user to the newsletter
  • Implement the code to subscribe the user using Effect

This project is part of my weekly newsletter at sandromaglione.com.

sandromaglione.com Newsletter weekly project

Project structure

The core of the project is implemented inside lib. The files inside lib contain the services and configurations defined using Effect.

app contains all the pages and API routes (nextjs).

Read all the details in the full article 👇

Read the full article on my website

Testing

test contains some tests of the Effect program. The app uses vitest and msw for testing.

Read all the details in the full article 👇

Read the full article on own to setup and test the app using Effect

About

Custom form to add subscriber from email to ConvertKit using NextJs and Effect・Newsletter sandromaglione.com

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published