A modern full-stack web application boilerplate built with Next.js, Drizzle ORM, and Neon (serverless Postgres).
This project provides a robust starting point for building scalable, type-safe, and cloud-ready apps with an integrated database and ORM.
- Next.js — Powerful React framework for SSR, SSG, and API routes.
- Drizzle ORM — Type-safe database migrations and queries for Postgres.
- Neon — Serverless Postgres with branching, perfect for modern cloud deployments.
- TypeScript — End-to-end type safety.
- Easy Deployment — Ready to deploy to Vercel or any Node.js environment.
git clone https://github.com/nelsonmandeladev/drizzle-nextjs-neon.git
cd drizzle-nextjs-neon
npm install
# or
yarn install
# or
pnpm install
# or
bun install
Create a .env.local
file in the project root and set your Neon Postgres connection string:
DATABASE_URL=postgres://<username>:<password>@<host>/<database>
If you want to use Unsplash images in seeding, add:
NEXT_PUBLIC_UNSPLASH_ACCESS_KEY=your_unsplash_access_key
Adjust any other environment variables as needed.
npm run db:generate
npm run db:migrate
npm run db:push
(Assuming you have a migration script set up for Drizzle ORM)
To populate your database with sample users and posts:
npm run db:seed
To enhance seeded data with avatar images and Unsplash post images:
npm run db:update-seed
Note: For Unsplash integration, ensure you have set NEXT_PUBLIC_UNSPLASH_ACCESS_KEY
in your .env.local
.
npm run dev
Open http://localhost:3000 in your browser.
Contributions are welcome! Please follow these steps:
- Fork the repository and create your branch:
git checkout -b feature/your-feature
- Make your changes with clear commit messages.
- Test your feature or fix.
- Push to your fork and submit a pull request with a clear description of your changes.
- The maintainers will review your PR. Please respond to feedback and update as needed.
- Use Conventional Commits for commit messages.
- Ensure your code passes linting and all tests.
- If adding a new feature, consider adding or updating documentation.
This project is licensed under the MIT License.