From 99699c759a9629863a964bd1b3a4b04d44ebfd4c Mon Sep 17 00:00:00 2001 From: Diego Freniche Date: Wed, 7 Jan 2026 17:11:57 +0100 Subject: [PATCH] Added devcontainer file to test Mongo Modeler / work on it directly on the browser. --- .devcontainer/devcontainer.json | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .devcontainer/devcontainer.json diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json new file mode 100644 index 00000000..f1224852 --- /dev/null +++ b/.devcontainer/devcontainer.json @@ -0,0 +1,30 @@ +{ + "image": "mcr.microsoft.com/devcontainers/javascript-node:dev-20", + "name": "MongoDB Library Sample App - Nodejs version", + "updateContentCommand": "", + "postAttachCommand": { + "server": "npm install && npm run dev -- --host 0.0.0.0" + }, + "customizations": { + "codespaces": { + "openFiles": [ + "src/main.tsx" + ] + }, + "vscode": { + "extensions": [ + "mongodb.mongodb-vscode" + ] + } + }, + "portsAttributes": { + "5173": { + "label": "Server", + "onAutoForward": "openPreview" + } + }, + "forwardPorts": [ + 5173 + ], + "workspaceFolder": "/workspaces/${localWorkspaceFolderBasename}" +}