-
Navigate to TrafficLightSimulator Root Folder
-
Create virtual environment by running the command
python -m venv venv
-
Activate virtual environment by running the command
venv\Scripts\activate
-
Install Python requirements by running the command
pip install -r requirements.txt
-
Make Django migrations by running the command
python manage.py makemigrations
followed bypython manage.py migrate
-
Run the application by running the command
python manage.py runserver 0.0.0.0:8000
-
After the application server starts to run, open the link
http:localhost:8000
preferably on chrome browser -
Click on the Simulation link as shown here:
-
Enter the number of lights value as 1 and the Go Signal Duration as per the below screen shot.
Note: Please see, I also provisioned the application to add up to 4 traffic lights which would work in unison in the formation of two groups.