Skip to content

Latest commit

 

History

History
36 lines (23 loc) · 916 Bytes

README.md

File metadata and controls

36 lines (23 loc) · 916 Bytes

AstroPlant front-end

This is the AstroPlant front-end. It communicates with the AstroPlant API to allow configuring and viewing data of kits.

Developing and building

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

Development server

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.

Building

To build the static files, run:

$ yarn build

This builds the app for production to the ./build folder.