Skip to content

Latest commit

 

History

History
27 lines (19 loc) · 568 Bytes

File metadata and controls

27 lines (19 loc) · 568 Bytes

MongoDB as persistence layer

This project is tested against MongoDB with the following assumptions:

  • MONGODB_URI should be set to mongodb://[host]:[port]/[db] as in mongodb://127.0.0.1:27017/aboutme

Enabling MongoDB

Your environment should contain

MONGODB_URI=mongodb://...

# optional with defaults
# MONGODB_COLLECTION=persons

Local environment with docker

Start a dockerized MongoDB with

docker run --name mongodb -p 27017:27017 -d mongo

Ensure .env contains

MONGODB_URI=mongodb://127.0.0.1:27017/aboutme