Skip to content

myuwono/traffic-lights

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

40 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ReactJS Traffic Lights

Build Status Coverage Status Codacy Badge

A simple traffic light simulation using React.

Tools: Babel(ES6), React, Webpack, Karma, Jasmine, Enzyme, Isparta (for code coverage).

Check out the online demo.

Quick Start

  • Install the dependencies
npm install
  • Run the application
npm start
  • Run tests
npm test

Description

The traffic lights are designated (N, S) and (E, W) like a compass. When switching from green to red, the yellow light is displayed for 30 seconds prior to it switching to red. The lights will change automatically every 5 minutes (300 seconds).