Skip to content
/ next-quick Public template

A quick way to get started using Next.js + Tailwind + Mongoose

Notifications You must be signed in to change notification settings

tsotimus/next-quick

Repository files navigation

Next-Quick

A boilerplate for Next.js with a quick start.

Included:

  • Next.js App directory
  • MongoDB via Mongoose
  • Tailwind
  • Shadcn
  • Nuqs
  • Sonner

Getting Started

  1. pnpm install
  2. Create your .env.local file following the .env.example file
  3. pnpm dev
  4. (Recommended) Use MongoDB Compass when developing locally

Structure

  • components/ - Re-usable React components
  • features/ - Feature components
  • app/ - Next.js app directory
  • lib/ - Libraries to connect with 3rd parties (e.g S3, MongoDB)
  • models/ - Mongoose models
  • types/ - Typescript types
  • utils/ - Utility functions, split between server and client
  • styles/ - Global styles

Adding new env variables

  • Add the variable to .env.example
  • Add the variable to env.d.ts
  • Add the variable to .env.local

About

A quick way to get started using Next.js + Tailwind + Mongoose

Resources

Stars

Watchers

Forks