Starter Pack Next.JS + Mongoose
First, run the development server:
npm run dev
# or
yarn dev
# or
pnpm dev
Open http://localhost:3000 with your browser to see the result.
You can start editing the page by modifying src/pages/index.tsx
. The page auto-updates as you edit the file.
Configuring of Mongo Model can be done at ./lib/model/test.model.ts
API routes can be accessed on http://localhost:3000/api/test/create. This endpoint can be edited in src/pages/api/test/create.ts
.
Connect to your MongoAtlas Database by creating .env.local and create var name MONGODB_URI = ...
- MongoDB Atlas – The multi-cloud developer data platform.
- Mongoose – Elegant mongodb object data modeling for node.js
- Next.js – React framework for building performant apps with the best developer experience
- TypeScript – Static type checker for end-to-end typesafety
- ESLint – Pluggable linter for Next.js and TypeScript