This project was bootstrapped with Create React App. On top of that it uses typescript, react-query, node-sass.
The app is built from the server app and the client app.
To make sure the client app works correctly, you need to take those three steps:
-
Create
.env.local
file in root directory, and set environment variable:REACT_APP_NETWORK_IP=172.21.3.165
replacing its value with your local network IP.
To obtain the IP you can runyarn start
and take the IP from the console output: -
Run
yarn server
in your console in order to start the server app mocking the endpoint -
Run
yarn start
to start client app while server app is running in the background
Note: if the client app was still running before created .env.local containing your IP, you need to restart the client app)
In the project directory, you can run:
Runs the local server mocking endpoint for client.
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.
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.