This directory contains the code for the frontend Staff Portal web application, built with React.
src/
: Directory containing the main application code.public/
: Directory for static assets.vite.config.js
: Configuration file for Vite, the build tool.
This workspace is set up to open in a Dev Container. All necessary dependencies, including Node.js, are pre-installed in the container. See the README in root workspace for details about the Dev Containers workflow.
Inside the dev container, install the project dependencies with npm
:
npm install
Create a .env
file to set environment variables for local development.
# Create ".env.local"
# and refer to .env.example and the shared vault in your password manager
cp .env.example .env.local
The React app runs in development mode with Vite
. The app will automatically update with Hot Module Replacement when you save a file.
# Start the dev server with HMR
npm run dev
The Dev Container is configured with Prettier and ESLint. Code will be automatically formatted on save.