This is an email client template built with Next.js and Postgres. It's built to show off some of the features of the App Router, which enable you to build products that:
- Navigate between routes in a column layout while maintaining scroll position (layouts support)
- Submit forms without JavaScript enabled (progressive enhancement)
- Navigate between routes extremely fast (prefetching and caching)
- Retain your UI position on reload (URL state)
git clone https://github.com/leerob/next-email-client
cd next-email-client
pnpm install
Use the included setup script to create your .env
file:
pnpm db:setup
Then, run the database migrations and seed the database with emails and folders:
pnpm db:migrate
pnpm db:seed
Finally, run the Next.js development server:
pnpm dev
Open http://localhost:3000 in your browser to see the app in action.