https://github.com/codestackr/mongodb-nextjs-todo
https://github.com/codestackr/mongodb-nextjs-todo
Last synced: 9 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/codestackr/mongodb-nextjs-todo
- Owner: codeSTACKr
- Created: 2021-07-23T22:36:07.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2021-07-27T22:28:42.000Z (over 4 years ago)
- Last Synced: 2025-04-12T19:40:48.813Z (12 months ago)
- Language: JavaScript
- Size: 760 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Connect to your MongoDB Atlas Cluster
- Be sure to sign up for a [MongoDB Atlas](https://www.mongodb.com/cloud/atlas/register) account
- After cloning this repo, from the terminal run: `npm install`
- Rename `.env.local.example` to `.env.local`
- Enter your MONGODB_URI and MONGODB_DB in `.env.local`
- From your Atlas Dashboard under Databases, click "Connect"

- Then select "Connect your application"

- Now copy your connection string. This is the MONGODB_URI

- For the MONGODB_DB you can use "todo", but you can also name it whatever you want.
- Run `npm run dev`