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.
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 👇
test contains some tests of the Effect program. The app uses vitest and msw for testing.
Read all the details in the full article 👇