https://github.com/shahank42/send-me-anonymously
Send me (shahank) an anonymous message.
https://github.com/shahank42/send-me-anonymously
anonymous anonymous-message cloudflare cloudflare-d1 cloudflare-pages cloudflare-workers drizzle drizzle-kit drizzle-orm message next14 nextjs shadcn-ui sqlite tailwindcss
Last synced: about 2 months ago
JSON representation
Send me (shahank) an anonymous message.
- Host: GitHub
- URL: https://github.com/shahank42/send-me-anonymously
- Owner: shahank42
- Created: 2024-01-03T10:29:42.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-01-03T22:10:04.000Z (over 1 year ago)
- Last Synced: 2024-10-11T12:37:51.146Z (7 months ago)
- Topics: anonymous, anonymous-message, cloudflare, cloudflare-d1, cloudflare-pages, cloudflare-workers, drizzle, drizzle-kit, drizzle-orm, message, next14, nextjs, shadcn-ui, sqlite, tailwindcss
- Language: TypeScript
- Homepage: https://send-me-anonymously.pages.dev/
- Size: 39.1 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Send Me Anonymously
> Send me (shahank) an anonymous message. That's all.
This is just me tackling both the client and server of a fully functional application.
I've tried to follow all the "best practices" and idiomatic ways to do the things I am doing, hope I did them right.This app is also a playground for me trying out shadcn/ui, because I've been itching to try out zod validation in forms, themeing and the new sonner component.
## Run locally
1. Clone the repo and `cd` into it.
2. Go into the `client` folder
3. `bun install` and `bun run dev` (or whatever you use)
4. If you need to run the server, `cd` back up and go into the `server` folder
5. `bun install` and `bun run dev` (or again, whatever you use)Running the server sets up a local D1 instance, so you can explore over there.
Also note that the client would be requiring two environment variables: `NEXT_PUBLI_API_URL_DEV` and `NEXT_PUBLIC_API_URL_PROD`.
The dev url is `http://localhost:8787/messages/add-message`, and for the prod url... you better directly contact me.