This is the AstroPlant front-end. It communicates with the AstroPlant API to allow configuring and viewing data of kits.
During the build process, environment variables are used to configure the servers the front-end communicates with.
Variable | Description | Default |
---|---|---|
VITE_API_URL |
The API url. | http://localhost:8080 |
VITE_WEBSOCKET_URL |
The websocket url. | ws://localhost:8080/ws |
To run the development server, run:
$ yarn
$ yarn start
This starts the app in 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.
To build the static files, run:
$ yarn build
This builds the app for production to the ./build
folder.