Giter Site home page Giter Site logo

cs655-miniproject's Introduction

CS655 Computer Networks - Mini Project

Team members

  • Ruizhi Jiang
  • Tiancheng Zhu
  • Anzhe Meng
  • Jiahao Song

How to run

Run on our server nodes (team members and administrators only)

Web interface

SSH to client node using

ssh [your-username]@pcvm1-39.geni.it.cornell.edu -p 22
  • Activate virtual environment: under /users/rzjiang/cs655geni, type command
. venv/bin/activate
  • Turn on web interface server: under /users/rzjiang/cs655geni/webapp, type command
python3 app.py

Backend server

SSH to server node using

ssh [your-username]@pcvm1-40.geni.it.cornell.edu -p 22
  • Activate virtual environment: under /users/rzjiang/BackendServer, type command
. venv/bin/activate
  • Turn on backend server: under /users/rzjiang/BackendServer/webapp, type command
python3 backend.py

Our application

Please visit http://192.122.236.116:5000 after executing scripts on server nodes.

Run on your own server nodes

GENI Configuration

On your local, download the Rspec file from our github:

wget https://raw.githubusercontent.com/ztcric/CS655-MiniProject/main/rspec.txt

Reserve resources using this downloaded file, make sure you choose the "Publicly Routable IP" option!

Download scripts and our source code

After setting up server nodes, login in to the home directory, and then

wget https://raw.githubusercontent.com/ztcric/CS655-MiniProject/main/scripts/download.sh
wget https://raw.githubusercontent.com/ztcric/CS655-MiniProject/main/scripts/env_setup.sh

On both server nodes, run

bash download.sh

Configure virtual environments

On both server nodes, make sure they all have python3 (type python3 to check). Then, setup your virtual environment

python3 -m venv cs655
. cs655/bin/activate

Notice you've now entered the virtual environment "cs655", then run

bash env_setup.sh

Web interface

First of all, enter the folder web-interface

cd CS655-MiniProject-main/web-interface

At line 18 in app.py, change this line to

url = "http://YOUR-OWN-BACKEND-SERVER-IP:5000/predict"

Also, at line 9 in templates/index.html, change this line to

<form action = "http://YOUR-OWN-WEB-INTERFACE-IP:5000/uploader" method = "POST"

Then run

python3 app.py

Backend server

First of all, enter the folder server-backend

cd CS655-MiniProject-main/server-backend

At line 9 in templates/output.html, change this line to

<form action="http://YOUR-OWN-WEB-INTERFACE-IP:5000/">

Then run

python3 backend.py

Our application

Please visit http://YOUR-OWN-WEB-INTERFACE-IP:5000 after executing scripts on server nodes.

cs655-miniproject's People

Contributors

jiahaosong avatar memphismeng avatar tzcliff avatar scholarofthefirstsin avatar

Stargazers

 avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.