First program for trying hands on nodejs. :)
Application makes use of mongoDB running on docker. Pre-requisite: NPM
To Run the application,
- Download, Install and Run Docker Desktop
- Download, Install and Run Kitematic
- Search "Mongo" on Kitematic and click "Create"
- When Mongo container changes status to "Running", create a new database with name "firstdb" and add a collection "base" (Adding a collection is mandatory as per the comment you will find while creating a new database)
- Click "Settings" on Right side on Kitematic
- Click "Hostname/Ports" to find "Published IP:Port" section (This will be used as connection string to connect this application to mongo)
- Update the "url" attribute in "database.config.js" file of this application under "config" folder with the IP and Port extracted in the above step.
- Go to project path, run command "node app.js" in your terminal