/front-lab

Primary LanguageTypeScript

FARM-docker web app

This directory contains the frontend application. It is built with React and Vite.

Requirements

  • Node.js for javascript execution and npm for package management.

Install

To install the project's dependencies, run

npm install

Running the server

To compile the application and start a development server with hot reload :

npm run dev

This will start a server running on http://localhost:5173/. Open a browser to this adress to access the frontend app.

Building the application

To build the application for production, run

npm run build

This will compile and process the application's source files into the dist directory, which can then be served by an http server.

Linting and formatting

To lint the frontend code, run

npm run lint

To format the code, run

npm run format

Note in order to configure eslint to work properly with VScode, you should set the working directory in your workspace config (open settings with cmd + , and search for eslint working ):

"eslint.workingDirectories": [
    "./frontend"
]