Real-Time Vehicle Tracking system.
git clone https://github.com/ThunderBolt-OS/team-team-sih-23.git
cd dashboard-ts
npm install
npm run dev
cd civil_app
npm install
npm run dev
cd driver_app
npm install
npm run dev
- Install Python virtualenv for backend
cd backend
pip install virtualenv
- Create a virtual environment
python -m virtualenv venv # for windows
python3 -m virtualenv venv # for linux
- Activate the virtual environment
venv\Scripts\activate # for windows
source venv/bin/activate # for linux
- Install dependencies
pip install -r requirements.txt
- 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
- Make sure to install
wsl
and install latest version ofUbuntu
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
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
SAME AS WINDOWS INSTALLTION PROCESS
Govt and people of Himachal Pradesh