Day 60 | Next.js + MongoDB
03 August, 2020
Connect Next.js app to MongoDB to persist authenticated users.
Learned:
- Start MongoDB Docker image with command:
docker run --rm -p 27017:27017 --name mongo -v ~/data/mongodata:/data/db -d mongo:latest
- Use MongoDB Compass to connect to MongoDB