A boilerplate for Next.js with a quick start.
Included:
pnpm install
- Create your
.env.local
file following the.env.example
file pnpm dev
- (Recommended) Use MongoDB Compass when developing locally
components/
- Re-usable React componentsfeatures/
- Feature componentsapp/
- Next.js app directorylib/
- Libraries to connect with 3rd parties (e.g S3, MongoDB)models/
- Mongoose modelstypes/
- Typescript typesutils/
- Utility functions, split between server and clientstyles/
- Global styles
- Add the variable to
.env.example
- Add the variable to
env.d.ts
- Add the variable to
.env.local