GUI
The front-end for the word grouping exercise.
Live Demo
https://icy-ground-0a06e3c10.azurestaticapps.net/
Getting Started
- Install dependencies:
npm install
- Run the application in development mode:
npm start
Summary of the Code
This code is implemented in ReactJs + MUI + TypeScript using the CRA template.
I have tried to leave comments in the source when necessary. Generally, the code is straightforward and I have tried to use descriptive variable names to make it easy to follow. I personally prefer longer but more descriptive variable/function names than adding comments.
A few things to note:
- I have only tested this GUI in Firefox as it is my main browser.
- I have used Class Components. I strongly prefer Class Components over Function Components as it enforces better OOD and improves extensibility.
- This GUI was not tested with a big dataset. I have only used the provided test data.
- There are better/prettier UX to implement a GUI for this task, but this is a proof of concept.
- Please forgive the aesthetics xD.
src
Folder Hierarchy
- ./: Contains the root of the React application. The application entry is
index.tsx
. The logic of the application begins atApp.tsx
- Base: Contains common type definitions and base classes.
- Components: Contains reusable React components.
- Utils: Contains utility classes and methods.