C:\WINDOWS\system32\drivers\etc\hosts
docker nginx server setup using nanoninja/docker-nginx-php-mysql
git clone https://github.com/nanoninja/docker-nginx-php-mysql.git
Go to the project directory
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Basic script to start with | |
* mongodb (Connection steps | |
* and Read operation) | |
*/ | |
// Step-1: Get the MongoClient (Driver for node) | |
const MongoClient = require("mongodb").MongoClient; | |
// Step-2: Store mongo server url |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const MongoClient = require("mongodb").MongoClient; | |
const MongoServerUrl = "mongodb://localhost:27017"; | |
const Config = { | |
useNewUrlParser: true | |
}; | |
MongoClient.connect(MongoServerUrl, Config, (err, client) => { | |
MongoCrud(client, () => { |
OlderNewer