This project is built using Vite and TypeScript. Below are the available scripts and environment variables for the project.
- Create
.envfile at the root of project
| Variable | Example Value | Description |
|---|---|---|
API_URL |
http://0.0.0.0:8000 |
Required. The base URL for the API. |
-
Install dependencies:
npm install
-
Start the development server:
npm run dev
| Command | Description |
|---|---|
npm run build |
Build the project for production |
npm run serve |
Serve the production build |
npm run type-check |
Run type-checking |
npm run lint |
Lint the code |
npm run lint:fix |
Automatically fix linting issues |
npm run format |
Format the code |
Example for local, available on http://localhost:3000:
API_URL=http://0.0.0.0:8000 docker compose up --build