Square checker is a tool that can find all possible squares from the given (x, y) points.
Projects consists of two folders - square-checker-backend (server), square-checker-frontend (react).
Square-checker-backend - contains server code, which opens a socket for frontend connections.
Square-checker-frontend - contains frontend code which sends requests through a socket to backend.
In order to run the application, you have to the the following
- Execute
npm install
andnpm start
in the square-checker-backend folder - Execute
npm install
andnpm start
in the square-checker-frontend folder
- You can enter a point by entering x and y values in the "Add new points" tab. After that press add and you will see your point being added to the list.
- You can save these points by entering file name and clicking save in "Files" tab
- You can add some points to your list from files by clicking Load points next to the file listed in "Files" tab
- When the points are ready you can click Find Squares button in the "Square processing tab"