A sample shopping cart project to explore different database systems with Node.js
Clone this repo to your local machine, cd into the directory and use the Node package manager npm to install
npm install
-
$docker pull mongo- Run docker
$docker run --name mongodb -p 37017:27017 -d mongo $docker start mongodb-
Connecting with mongodb database usinga client
-
Download and install Robo3T
-
Open Robo3T > Create Connection(use localhost:37017)
-
$ docker pull redis$ docker run --name redis -p 7379:6379 -d redis $ docker start redis$ sudo npm install -g redis-commander $ redis-commander --redis-port 7379Access redis db using url from any browser - http://127.0.0.1:8081
-
$ docker pull mysql $ docker run --name mysql -p 3406:3306 -e MYSQL_ROOT_PASSWORD=mypassword -d mysql $ docker start mysqlInstall MySql workbench
Once installed open workbench and create a connection to hostname 127.0.0.1:3406 enter root password(mypassword) provided earlier and create a schema called 'shopsy'.
$ npm start