-
Notifications
You must be signed in to change notification settings - Fork 1
asgn 1
Neeraj Lad edited this page Sep 12, 2017
·
3 revisions
A microservices based application which helps the client query the database. The user enters any number 'i' between 1 and 10 inclusive. This application retrieves information like Rating, Name and Number of Reviews for the movie ranked 'i' in the IMDB Top 10 list.
- OS: El Capitan 10.11.6
- NodeJS: v6.11.0
- Python: 3.5.2
- PHP: 5.5.38
- MySQL: 14.14
- Install PHP
- Add your MySQL credentials to
ms3/ms3.php
- Install Flask
- Run
export FLASK_APP=ms2.py
insidems2
- Install node
- Install restify as
npm install restify
- Install request as
npm install request
- Install node
- Install restify as
npm install restify
- Install request as
npm install request
- Start ms3
Run php -S localhost:9080
- Start ms2
Run flask run
Note to Ubuntu users: If you haven't setup a symlink from nodejs
to node
, use nodejs
in the following commands instead of node
. If needed use sudo
with the commands as sudo node
or sudo nodejs
.
- Start ms1
Run node ms1.js
- Start gateway
Run node gateway.js
- Open index.html