Skip to content

Files

Latest commit

c7a91de · Oct 10, 2024

History

History

frontend

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
Jun 29, 2023
Oct 9, 2024
Feb 25, 2023
Jun 27, 2023
Jun 27, 2023
Oct 9, 2024
Feb 25, 2023
Oct 10, 2024
Oct 9, 2024
Oct 9, 2024
Oct 10, 2024
Oct 10, 2024
Oct 10, 2024
Jun 27, 2023
Oct 9, 2024
Oct 9, 2024
Oct 10, 2024
Oct 9, 2024
Oct 9, 2024
Mar 4, 2023

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"
]