Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ignacionmiranda/notion-birthday-reminder
Small NextJS api route that uses Nodemailer and Notion APIs in order to retrieve birthday data from a database and, considering the current day, send an email saying whose birthday is.
https://github.com/ignacionmiranda/notion-birthday-reminder
nextjs nodemailer notion
Last synced: about 1 month ago
JSON representation
Small NextJS api route that uses Nodemailer and Notion APIs in order to retrieve birthday data from a database and, considering the current day, send an email saying whose birthday is.
- Host: GitHub
- URL: https://github.com/ignacionmiranda/notion-birthday-reminder
- Owner: IgnacioNMiranda
- License: mit
- Created: 2022-04-30T19:59:13.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-10-03T15:02:07.000Z (about 1 year ago)
- Last Synced: 2024-04-17T04:54:49.564Z (8 months ago)
- Topics: nextjs, nodemailer, notion
- Language: TypeScript
- Homepage: https://notion-birthday-reminder.netlify.app/
- Size: 91.8 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Notion Birthday Reminder
[![Netlify Status](https://api.netlify.com/api/v1/badges/a2b1ede5-1da9-4507-b9be-c297c236b3cc/deploy-status)](https://app.netlify.com/sites/notion-birthday-reminder/deploys)
This is a [Next.js](https://nextjs.org/) project bootstrapped with [`create-next-app`](https://github.com/vercel/next.js/tree/canary/packages/create-next-app).
It uses Nodemailer and Notion APIs in order to retrieve birthday data from a Notion database and, considering the current day, send an email saying whose birthday is.
## Getting Started
1. Install dependencies with `pnpm`
2. Run the development server using `pnpm dev`
Open [http://localhost:3000](http://localhost:3000) to see placeholder page.
The `pages/api` directory is mapped to `/api/*`. Files in this directory are treated as [API routes](https://nextjs.org/docs/api-routes/introduction) instead of React pages.
This project has a `/api/birthday-reminder` GET endpoint, it retrieves data and send text messages.
You also need to configure a secret in order to bypass the security header `x-birthday-secret`.
## Additional Information
This app is deployed on [Netlify](https://notion-birthday-reminder.netlify.app/) and has a Google Scheduler cronjob attached to it. This cronjob is executed everyday in order to update the birthday reminder of your loved people (:
### License
[MIT](LICENSE)
### About me
[Linkedin](https://www.linkedin.com/in/ignacio-miranda-figueroa/)