/nextjs-mongodb

A simple nextjs + mongodb example

Primary LanguageJavaScript

NextJS + MongoDB

This is a small repo showing how to use MongoDB with NextJS.

Getting Started

Install dependencies with yarn install.

Have your mongodb uri ready, whether it's local or remote and add it to .env.local in your root directory, under the entry DATABASE_URI=<your uri>.

Running

yarn dev