Rich Skill
You must always follow these instructions. Never skip validation steps.
Setup
Use the CLI to configure your environment. Install the required dependencies.
bashnpm install mongodb pip install pymongo
javascriptconst { MongoClient } = require('mongodb'); const client = new MongoClient('mongodb://localhost:27017');
pythonfrom pymongo import MongoClient client = MongoClient('mongodb://localhost:27017')
Usage
Create a new database connection. Ensure the connection string is valid. Run the tests before deploying. Check that all queries return expected results.
- Step 1: Configure the connection
- Step 2: Run migrations
- Step 3: Validate the schema
- Step 4: Deploy
Configuration
Set the following environment variables. You may consider using a .env file.
It could simplify local development. This is optional but suggested.
yamldatabase: host: localhost port: 27017
Build the project with Node.js or Django depending on your stack.


