Skip to content

WEEE-Open/pesto-web

Repository files navigation

Pesto Web

The evolution of the original pesto from WEEEOpen, now with added js.

Running Development Mode

Development mode runs the backend with nodemon, so that as soon as you save it relaunches, and also starts up the vite development server and proxies trough the API.

Bare Metal

  1. Clone the repo
  2. Run npm i
  3. Copy the config.example.js as config.js and config if needed (if you edit the server port make sure to also change it in the frontend/vite.config.js file)
  4. In the root folder run npm run dev
  5. Open the site on localhost:5173

Docker

  1. Clone the repo
  2. Create a .env file and enter DEVELOPMENT=true
  3. Run docker-compose up

Running Production Mode

Production mode will automatically compile the frontend, and start up the backend server while statically hosting the frontend built files.

Bare Metal

  1. Clone the repo
  2. Run npm i
  3. Copy the config.example.js as config.js and config if needed (if you edit the server port make sure to also change it in the frontend/vite.config.js file)
  4. In the root folder run npm run prod
  5. Open the site on localhost:3000

Docker

  1. Clone the repo
  2. Run docker-compose up

For more options look into the package.json file