- Install yarn
- Install dependencies:
yarn
- Start dev server
yarn dev
If you're having issues with your editor picking up types in TypeScript, follow the yarn editor sdk docs. This repo already includes Visual Studio Code sdks, but they may need to be augmented or regenerated. If you're using VSCode, make sure you install the recommended extensions. More info can be found in the yarn docs
The production portion of the frontend runs with an Express server to serve the static files so that you can switch out the api url as needed without rebuilding the container. You can change this by passing VITE_BASE_API_URL
to the frontend container:
frontend:
image: ghcr.io/meshaddicts/meshinfo-spa:latest
ports:
- 8000:80
environment:
- VITE_API_BASE_URL=/api