🔗 View demo: starter.ldgr.app
This project uses Next.js 13 app directory structure with TypeScript. The data layer uses Drizzle ORM to interface with PostgreSQL/MySQL. Emails are sent via Resend and written using react-email. UI components utilize Radix UI and Tailwind CSS.
- Framework: Next.js 13 (App Directory)
- Database: PostgreSQL/MySQL, Drizzle ORM
- Email: Resend + react-email
- UI: Radix UI + Shadcn UI
- Styling: Tailwind CSS
- Deployment: Vercel
- Serverless API routes and functions
- Type safety with TypeScript
- Declarative db schema with Drizzle ORM
- PostgreSQL and MySQL support
- Email sending with Resend
- Email templates written in React with react-email
- Open
localhost:3000/emails
to preview email templates and send test emails
- Open
- Radix UI components
- Tailwind CSS styling
- Optimized with bun builds
- Clone the repo
- Install dependencies with
bun install
- Configure environment variables
- Run dev server with
bun run dev
- Create components in
app
directory - Define API routes in
app/api
- Write email templates in
emails
directory - Build database schema in
db
folder
app
: Next.js pages, layouts, API routescomponents
: React componentsemails
: Email templatesdb
: Database schema and configstyles
: Global stylesutils
: Shared utility functions
Run bun run db:studio
and open http://0.0.0.0:4983/
to view the database in the browser.
The app can be easily deployed on Vercel or any Node.js platform.
Let me know if you would like me to modify or expand this README further.
# Drizzle Kit
# Vercel Postgres requires SSL "?sslmode=require"
export DATABASE_URL="postgres://<user>:<password>@<host>/<dbname>?sslmode=require" && npx drizzle-kit push:pg --config=drizzle.config.ts