- UI: https://github.com/lennonnikolas/devices-clientapp
- Backend: https://github.com/NinjaMSP/devicesTask_serverApp
- The UI has been configured to use the
cross-envpackage to set the port to 3001 no matter the OS. Each operating system sets ports differently when starting the application.
- Open a bash terminal and navigate to the root directory of the UI application.
- run
npm ito install all project dependencies. - run
npm startin the bash terminal.
This should bring up the application displaying server information mock data from the backend.
- NOTE: The backend must be started to see this information!
- Open a bash terminal and navigate to the root directory of the backend application.
- run
npm ito install all project dependencies. - run
npm startin the bash terminal.
You should see in the bash terminal that the application is listening on port 3000.
To run the unit/integration tests within the project do the following:
- Open a bash terminal and navigate to the root directory of the UI application.
- run
npm testand you will see several tests be compiled and run within the bash terminal. Output will be sent to the console as the results of the tests.
These tests are run using React Testing Library and Jest.