- Clone this repo with
git clone git@github.com:reedbarger/next-connect.git
- Install dependencies (
npm install
oryarn install
) - Go to MLab and create a new (free) database
- Copy the Database URI to connect using the Mongo Driver
- Change your .env.default file to just .env and paste the copied uri as the value for MONGO_URI in .env
- Add any random string for the SESSION_SECRET entry in your .env file
- Run with
npm run dev
oryarn dev
- Server should be listening on localhost:3000