DEV Community 👩‍💻👨‍💻

Discussion on: Docker-compose an express and mongo App

Collapse
 
vanguard90 profile image
Enes K.

Hi Jamal, thank you for the nice and clear explanations. It would be great if you can add the package.json file to this post as well.

Collapse
 
jay97 profile image
Jamal Al • Edited on

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",

    }
}