Skip to content

Jiankun0830/ISTD50043_bookReview

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SUTD 50.043 Database group project for online book-self web application - Group 7: Good Shelf

Documentation

Please see the full documentation avialble at https://github.com/Jiankun0830/ISTD50043_bookReview/blob/master/documentation.pdf

Live Demo

http://35.161.123.244/home_page

Setup

Run this command in your terminal

bash <(curl -s https://raw.githubusercontent.com/Jiankun0830/ISTD50043_bookReview/master/setup.sh)

Setup Reminder

  1. Please make sure there are more >= 3 elastic ip address quota on this region for use, this is very important :)
  2. Please input the aws credentials and number of datanode you want to choose, you will have the option of number of datanodes NUM= 1,3,7 (You can choose any number actually)
  3. We will set up all the ec2 instances in region us-west-2 , and all the AMI images for instances are within Oregon region.
  4. To access to the front end, as we screenshotted in the report, there are 3 ways to find the IP address of the web server. Once we find the IP address for the web app, just paste it on the browser, you will automatically be directed to the homepage. e.g. http://35.161.123.244
  5. To access the output file of analytics, we already scp to the local machine. Therefore, it will be automatically stored in current directory (your local machine) where you execute setup.sh after the analytics part finish execution
  6. Reminder: In later part of the execution script for production backend setup, i.e. setting up mongoDB, mySQL may take up to 10 minutes each part to setup due to the installation, therefore it may looks that it ‘hangs’ at that stage :) When the script finished executing, please wait for 4-5 minus for the server to finish setting up. Then you can go to server ip for front end e.g. http://35.161.123.244

(Optional) Alternative individual setup for analytics backend

Due to the long setup time for production backend, instead of running the entire setup, if you just want to set up the analytics backend only (For testing different number of datanodes), we provide an another method for you :)

bash <(curl -s https://raw.githubusercontent.com/Jiankun0830/ISTD50043_bookReview/master/script/analytics_setup_separate.sh)

This will prompt to ask you to input number of slaves, you must input different number of slaves everytime. As an individual setup script that could run independent from the full setup script, it also prompts to ask you for aws credentials as what is did in setup script

Similarly, this result is also transferred to your local machine for your access :)

One-at-once Termination

If you want to terminate all the instance relevent to our project, we provide a script for to terminate all at once:

python3 <(curl -s https://raw.githubusercontent.com/Jiankun0830/ISTD50043_bookReview/master/script/stop_all_instances.py)

Requirements

https://github.com/dinhtta/istd50043_project

Reference

adapt code from https://github.com/isaychris/flask-book-reviews

Collaborators

  • Lu Jiankun 1002959
  • Zhao Lutong 1002872
  • Peng Shanshan 1002974
  • Gao Yunyi 1002871
  • Nashita Abd Tipusultan Guntaguli 1003045
  • Ainul Mardhiyyah 1003115
  • Hong Pengfei 1002949