This project was bootstrapped with Create React App.
This simpe app allows the user to retrieve a list of the crimes occurred in the different districts of the UK, data provided by Data Police UK API.
Open the terminal in the root directory of the project and execute npm install
. That will add the dependencies required to make the app work.
In the project directory, you can run:
Runs the app in the development mode. Open http://localhost:3000 to view it in the browser.
The page will reload if you make edits. You will also see any lint errors in the console.
Launches the test runner in the interactive watch mode. See the section about running tests for more information.
-
Unit tests for the container components and all the different reducers and their actions.
-
Create some unit tests to validate that the DOM is generated properly and that the events are being handled correctly when all buttons are clicked. Due to the simplicity of the app this wasn't done, and the unit tests are more focused on the key functions of the app.
-
Create a component to display possible errors in any of the APIs.
-
Create unit tests for the async functions executed with Axios.