SandroMaglione / convertkit-nextjs-newsletter-form

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

Home Page:https://www.sandromaglione.com/newsletter

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

https://www.sandromaglione.com/newsletter


Languages

Language:TypeScript 99.0%Language:JavaScript 1.0%