retropilot-client/README.md

16 lines
816 B
Markdown
Raw Normal View History

2022-01-05 10:00:50 -07:00
# retropilot-client
2022-03-21 14:16:36 -06:00
![Build and test CI](https://github.com/RetroPilot/retropilot-client/actions/workflows/build.yml/badge.svg)
2022-01-05 10:00:50 -07:00
2022-03-21 13:45:16 -06:00
React client for [RetroPilot server](https://github.com/RetroPilot/retropilot-server)
2022-01-09 19:13:00 -07:00
2022-01-10 17:47:58 -07:00
## Environment Variables
The app configuration (see `src/config.js`) is loaded from environment variables. A different
2022-03-21 13:45:16 -06:00
environment can be configured for development (`npm run start`), testing (`npm test`) and
2022-01-10 17:47:58 -07:00
production (`npm run build`).
2022-01-09 19:13:00 -07:00
To override the environment variables, create a `.env.local` file. You can also override the
2022-01-10 17:47:58 -07:00
variables for development, testing and production independently (`.env.development`, `.env.test.local` and `.env.production.local`
files). Set the `API_URL` to the address of the RetroPilot server, such as `http://localhost:8080` or `https://api.retropilot.local`.