Welcome to the Football League Web UI project. The goal of the project is to build a browser based web frontend SPA that gets the data about match schedule/results from the backend and then computes leaderboard
This solution requires NodeJs v16 installed.
In order to install project dependencies run:
npm install
In order to work on the frontend application we have provided a simple mock database server.
To run the mock server run the following command:
npx json-fake-server -m dev-mock-server-config.json
After this you would be able to access backend at http://localhost:3001. To verify if the server is running you can run:
The response should be {"success": true, "version": "1.0"}
The following command will run the SPA in local dev server:
npm start
The application will be available at http://localhost:3000 and by default you should see a welcome message there.
In order to prepare production build you need to run:
npm run build
The test file to verify src/services/LeagueService.js is located at tests/leaderboard.test.js.
To run the tests just run this command.
npm test