-
Clone this repo.
git clone https://github.com/sonali-singh97/Vahan-Sarathi.git
-
Navigate to
backend
subfolder in cloned repository.cd Vahan-Sarathi/backend
-
Create a Virtual Environment.
python3 -m venv venv
-
Activate that Virtual Environment.
source venv/bin/activate
-
Install the pravega-grpc-gateway client.
git clone https://github.com/pravega/pravega-grpc-gateway /tmp/pravega-grpc-gateway && \ cd /tmp/pravega-grpc-gateway && \ pip install grpcio pravega-grpc-gateway/src/main/python
-
Install all other requirements.
pip install -r requirements.txt
-
Create a Apache Cassandra Cluster for some result saving.
7.1 For Microsoft Azure, Use Cosmos. Refer this
7.2 For Amazon Web Services, Refer this
7.3 You can any hosting service as you like, just follow the basic procedure of documentation.
7.4 For localhost & docker cluster running on local machine, Please remove
-
Create a
config.py
file with following contents.config = { 'username': "username, 'password': 'pass123', 'contactPoint': 'demo-cassandra.com', 'connectionString': 'port':'9071' }
-
In
main.py
replace127.0.0.1:54672
with your pravega-grpc-getway IP address and port. -
Run
python main.py
. -
Backend is working on
http://localhost:8000
IoT
Folders and files
Name | Name | Last commit date | ||
---|---|---|---|---|
parent directory.. | ||||