Text to Web Display
This is a simple webapp that displays texts sent to a Twilio number.
- A text is sent to the Twilio number
- Twilio's webhook hits the storeText API endpoint.
- The text's information is added to MongoDB.
- Every sixty seconds (or on a defaul reload) a custom React hook with useSWR calls the getText endpoint to fetch the newest text.
- That text is displayed.
Built using Next.js, Tailwind CSS, Prisma, and MongoDB.