This project was bootstrapped with Create React App.
You can run it locally with npm install
and npm start
.
This project assumes Node v16 and later. Ensure your installed version is v16 or later or "your experience may differ".
- Run Common API project locally (will be on port 8088 in dev profile or 8080 in staging/production)
- Open a browser and navigate to
http://localhost:8088/api/api-docs/dashboard-api-v2
- This will return json containing all the endpoints.
- Copy the returned json and replace the contents of
tron-common-api.json
in the client app'sresources
directory with it. - Use directions below for generating the TypeScript from the json file.
- Add updated .json to the /resources directory.
- Run
npm run generate-api-client
.
npm install -g serve serve -s build