Skip to content

tsengia/intersection-dashboard

Repository files navigation

Traffic Light Dashboard

Illustration of a traffic light with red, yellow, and green lights

This is a simple React JS single page application (SPA) for controlling virtual Traffic Intersections. The backend is powered by AWS AppSync and DynamoDB.

This frontend app was originally built for a previous IoT project of mine and has now been refactored to use AWS AppSync instead of oneM2M.

Try it out here!


Development

Before developing, you will need to install the required node modules, run the following command to install them:

npm ci

To launch the development server, run the following command from this directory:

npm start

Deployment

To build a deployment version of this app, run this command: npm run build.

This will create a set of static files in the build directory.
You can copy/move these files into your /var/www/html directory to serve them to your users.