DEV Community

Discussion on: Docker-compose an express and mongo App

Collapse
 
jay97 profile image
Jamal Al • Edited

hey Enes K. Thanks for the nice comment.

make a file package.json in your project, copy/past bellow json object
and run npm install to get all the dependences.

{
    "name": "docker-demo",
    "version": "1.0.0",
    "description": "",
    "main": "index.js",
    "scripts":
        "start": "nodemon index.js"
    },
    "keywords": [],
    "author": "Jamal",
    "license": "ISC",
    "dependencies": {
        "express": "^4.16.4",
        "mongoose": "^5.4.19",
        "ejs":"^"
    },
    "devDependencies": {
        "nodemon": "^1.18.10",

    }
}