AnyBus

Real-Time Vehicle Tracking system.

Installation

Clone the Repo

git clone https://github.com/ThunderBolt-OS/team-team-sih-23.git

Admin Dashboard

  cd dashboard-ts
  npm install
  npm run dev

User App

  cd civil_app
  npm install
  npm run dev

Driver App

  cd driver_app
  npm install
  npm run dev

Backend

  1. Install Python virtualenv for backend
cd backend
pip install virtualenv
  1. Create a virtual environment
python -m virtualenv venv # for windows
python3 -m virtualenv venv # for linux
  1. Activate the virtual environment
venv\Scripts\activate # for windows
source venv/bin/activate # for linux
  1. Install dependencies
pip install -r requirements.txt
  1. Start the backend
  • make sure to add 0.0.0.0:8008 in the end to make it accessible from other devices in the same network.
python manage.py runserver 0.0.0.0:8008

Redis server installation

For Windows

  • Make sure to install wsl and install latest version of Ubuntu from Microsoft Store.
  • Install Redis server in Ubuntu
curl -fsSL https://packages.redis.io/gpg | sudo gpg --dearmor -o /usr/share/keyrings/redis-archive-keyring.gpg

echo "deb [signed-by=/usr/share/keyrings/redis-archive-keyring.gpg] https://packages.redis.io/deb $(lsb_release -cs) main" | sudo tee /etc/apt/sources.list.d/redis.list

sudo apt-get update

sudo apt-get install redis
  • Start the redis server
sudo service redis-server start
  • Connect to redis
    • You can test that your Redis server is running by connecting with the Redis CLI:
redis-cli

if you see the following output, then you are good to go.

redis-cli
127.0.0.1:6379> ping
PONG

For Mac OS

open terminal and run the following commands

brew install redis
  • Start the redis server
redis-server

As an alternative to running Redis in the foreground, you can also use launchd to start the process in the background:

brew services start redis

This launches Redis and restarts it at login. You can check the status of a launchd managed Redis by running the following:

brew services info redis

If the service is running, you'll see output like the following:

redis (homebrew.mxcl.redis)
Running: ✔
Loaded: ✔
User: miranda
PID: 67975
  • To stop the service, run:
brew services stop redis

For Linux

SAME AS WINDOWS INSTALLTION PROCESS

Language and tools used

firebase logo amazonwebservices logo kubernetes logo docker logo anaconda logo chrome logo css3 logo django logo git logo linux logo materialui logo mysql logo nginx logo npm logo python logo react logo redis logo tensorflow logo vscode logo postman logo stackoverflow logo typescript logo vite logo googlecloud logo nodejs logo nodejs logo

Contributors

Used By

Govt and people of Himachal Pradesh