forked from borntorock/CassandraBrowserTool
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.sh
50 lines (28 loc) · 796 Bytes
/
setup.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
#!/bin/bash
# script for installing and running our Source Code
# Assuming the user is loginned as Super-User and if not login then it will ask for sudo access
# Installing required libraries :: pycassa, flask
apt-get install python-pycassa
for i in python-pycassa python-flask; do
sudo apt-get install $i
done
echo
echo Pycassa API and Flask API Installed
echo
echo
# Installing cassandra server
sudo apt-get install cassandra
echo
echo Cassandra Server Installed
echo
echo
# Running cassandra server in backend
nohup cassandra -f >>/dev/null 2>>/dev/null &
echo
echo Cassandra Running
echo
echo
# Running our Python Backend Code
python Cassandra/my_code.py
# Pointing to the Localhost IP of the Machine on which the setup file is running
firefox http://127.0.0.1:5000/