This is a small repo showing how to use MongoDB with NextJS.
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>
.
yarn dev