A simple traffic light simulation using React.
Tools: Babel(ES6), React, Webpack, Karma, Jasmine, Enzyme, Isparta (for code coverage).
Check out the online demo.
- Install the dependencies
npm install
- Run the application
npm start
- Run tests
npm test
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).