Sie sind auf Seite 1von 3

Real-time Dublin dashboard

Project Deployment Procedure

Bhargav Ramprasad Panth


Harsith Patel
Onurcan Onder

Sahil Manchanda
Some Aditya Mandal
1. Frontend Deployment
1.1 First Time Deployment:
1. Installed Ubuntu Server instance on AWS.
2. Login into the server as Ubuntu user using the pem file created while installing
server.
3. Installed and configured Apache2 web server to host the UI using following link.
4. Connect to the GIT repository from apache website folder /var/www/html.
5. Deploy the UI application by cloning all the UI components from GIT into the
following Apache website folder /var/www/html
a. git clone https://gitlab.scss.tcd.ie/patelh/CityManagementFinal
6. Start apache2 service using below command. Restart in case if the service is
already running.
a. To start apache2 service - “sudo systmctl apache2 start”
b. To restart apache2 service - “sudo systmctl apache2 restart”
7. Open port 80 to allow incoming http traffic into the server from AWS instance
screen.
8. Test if the URL is accessible from outside to ensure the hosting is completed
successfully.

1.2 Recursive Deployment:


1. Login into the server as Ubuntu user using the pem file created while installing
server.
2. Connect to the GIT repository from apache website folder /var/www/html.
3. Re-deploy the UI application by pulling all the UI components from GIT into the
following Apache website folder /var/www/html
a. git pull https://gitlab.scss.tcd.ie/patelh/CityManagementFinal
4. Restart apache2 service using below command. Restart in case if the service is
already running.
a. To restart apache2 service - “sudo systmctl apache2 restart”
5. Check if port 80 is open to allow incoming http traffic into the server from AWS
instance screen.
6. Test if the URL is accessible from outside to ensure the hosting is completed
successfully.

2. Backend Deployment
2.1 Pipeline Deployment
1. Install RabbitMQ
2. Install MongoDB
3. Run as a service / Ubuntu 16.10 - sudo systemctl start rabbitmq
4. There are 4 services that needs to be run parallel
a. Dublin Bus Producer
b. Dublin Bikes Producer
c. Dublin Bus Consumer
d. Dublin Bikes Consumer
5. To deploy Dublin Bus Consumer - Download / extract the Dublin Bus
Consumer project and run the following command to check end-to-end flow.
a. python main.py --host=localhost --flag=bus --start_index=0 --
end_index=10.
b. This runs a pass from stops indexed from 0 to 10 (11 total) and throws
it to the message broker pipeline.
6. To deploy Dublin Bikes Consumer - Download / extract Dublin Bikes
Consumer project and run the following command to check end-to-end flow
a. python main.py --host=localhost --flag=bikes
b. This runs a pass on all Dublin Bikes data and throws it to the message
broker pipeline.
7. To deploy the Dublin Bus and Dublin Bikes consumer, download and extract
the respective Consumer projects and run
a. python main.py --host=localhost --flag=bus | bikes (respective
pipelines).

2.2 API Deployment


1. Install Nodejs and NPM
2. Install PM2
3. Download / extract the API project
4. Run the following commands
a. sudo npm install - This installs all the required modules
b. npm run test-build - This runs the project as a service (accessible on
port
c. 8080)
d. npm run test - runs test cases
e. npm run watch - runs on watch mode, to check for debug logs
f. npm run coverage - shows the code coverage metrics

Das könnte Ihnen auch gefallen