Skip to content

Latest commit

 

History

History
66 lines (47 loc) · 2.85 KB

README.md

File metadata and controls

66 lines (47 loc) · 2.85 KB

Polycade.com


Polycade Engineering React Challenge

Polycade centralizes the management of Polycade Gaming Machines through an administrative interface as a SaaS Platform built using React.

In order to provide more value to this offering, we add features to the management of machines frequently.

Background

Polycade is the combination of the Polycade Gaming Machine which is a specially developed cabinet unit allowing 2 or 4 player physical configurations running MAME arcade games and the Polycade SaaS Platform allowing remote operation and management of Polycade Gaming Machines for our clients.

This repo presents a base version of the Administrative UI for managing Polycade Gaming Machines remotely from the Polycade SaaS Platform through individual machine's settings.

Challenge

Update the Administrative Interface to render a list of all machines, along with the ability to view an individual machine's details. Each machine receives real-time updates from a web socket, which need to be reflected in the UI.

To get started, run npm run server to start the backend server, and npm start to start Webpack.

The backend API is accessible from http://localhost:8080 and exposes two endpoints:

  • GET /machines - get all machines
  • GET /machines/:machineId - get a machine by its ID
  • PUT /machine/:machineId - update a machine

The web socket url is ws://localhost:1337.

  1. Add a new reducer to the existing store for the machines
    • Each machine will have the following data:
      • name
      • ip_address
      • health
  2. Render a list of machines on the /machines route
    • Use data from the machines reducer to render a list view of the machines
    • Each machine list item will render the following data:
      • Name
      • IP Address
      • Health
    • Subscribe to updates from the web socket to get the latest health for each machine.
    • Clicking the list item for a machine will navigate to /machines/:machineId
  3. Render a view for a machine on the /machines/:machineId route
    • Show the following data:
      • Name
      • IP Address
      • Health
    • Subscribe to updates from the web socket to get the latest health for the machine.
    • Allow for the "Name" of the machine to be updated.
  • Each Component should have a test
  • Enhance the existing Redux implementation to manage the new state being introduced for this challenge
  • Call a REST API to store the changes made back to the SaaS Platform for use by the Machines

Instructions

How to attempt this challenge:

  1. Create a new repo in your account and note the git url
  2. Clone this repo
  3. Solve the challenge
  4. Set your new repo as the origin: git remote set-url origin ${your repo url}
  5. Push your solution to your repo

You must follow these steps for your solution to be accepted -- forks or other methods will not be considered.