A React + TypeScript + Vite front end for the BOOM application.
- Docker and Docker Compose installed
- Environment variables configured (see below)
-
Clone the front end repo:
git clone https://github.com/boom-astro/babamul-web.git cd babamul-web -
Create a
.envfile for the front end:cp .env.example .env
-
Repeat the first two steps for the backend services (https://github.com/boom-astro/boom) and spin them up for local development:
make dev
-
Build and start the front end development container:
docker-compose up --build
The app will be available at
http://localhost:5173
Install our pre-commit hook:
pre-commit installThis will check your changes before each commit to ensure that they conform with our code style standards.
docker-compose.override.yamlis automatically applied for local development- It exposes port 5173 for local access
- It uses a local network instead of requiring an external Traefik network
- For production deployments, only
docker-compose.yamlis used by explicitly specifying it withdocker compose -f docker-compose.yaml up - Do not commit local
.envfiles to version control
This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules.
Currently, two official plugins are available:
- @vitejs/plugin-react uses Babel for Fast Refresh
- @vitejs/plugin-react-swc uses SWC for Fast Refresh
If you are developing a production application, we recommend updating the configuration to enable type-aware lint rules:
export default tseslint.config({
extends: [
// Remove ...tseslint.configs.recommended and replace with this
...tseslint.configs.recommendedTypeChecked,
// Alternatively, use this for stricter rules
...tseslint.configs.strictTypeChecked,
// Optionally, add this for stylistic rules
...tseslint.configs.stylisticTypeChecked,
],
languageOptions: {
// other options...
parserOptions: {
project: ['./tsconfig.node.json', './tsconfig.app.json'],
tsconfigRootDir: import.meta.dirname,
},
},
})You can also install eslint-plugin-react-x and eslint-plugin-react-dom for React-specific lint rules:
// eslint.config.js
import reactX from 'eslint-plugin-react-x'
import reactDom from 'eslint-plugin-react-dom'
export default tseslint.config({
plugins: {
// Add the react-x and react-dom plugins
'react-x': reactX,
'react-dom': reactDom,
},
rules: {
// other rules...
// Enable its recommended typescript rules
...reactX.configs['recommended-typescript'].rules,
...reactDom.configs.recommended.rules,
},
})