Skip to main content

How to run

To run the application locally both client and server applications have to run at the same time.

Start backend application

Ensure that you have installed NodeJS and npm before continuing.

  1. Clone the repository:
git clone https://github.com/I2Tunimib/I2T-backend.git
  1. Install all required packages:
cd I2T-backend && npm install
  1. Create a .env file in the root of the application. Copy the content of the file .env-sample in your .env file and comment/uncomment/add variables as you need.
  1. Launch the application:
npm run start-dev

On the first run, a folder public is created to host datasets, tables, and users. The users.info.json file is populated with username: test and password: test, that can be used to signin. More users can be added by modifying that file.

Start backend application (With docker)

Ensure that you habe installed Docker and docker-compose before continuing.

  1. Clone the repository:
git clone https://github.com/I2Tunimib/I2T-backend.git
  1. Create a .env file in the root of the application. Copy the content of the file .env-sample in your .env file and comment/uncomment/add variables as you need.
  1. Build docker image and start the container:
docker-compose -f docker-compose.dev.yml up

On the first run, a folder public is created to host datasets, tables, and users. The users.info.json file is populated with username: test and password: test, that can be used to signin. More users can be added by modifying that file.

Start frontend application

Ensure that you have installed NodeJS and npm before continuing.

  1. Clone the repository:
git clone https://github.com/I2Tunimib/I2T-frontend.git
  1. Install all required packages:
cd I2T-frontend && npm install
  1. Create a .env file in the root of the application and fill it with the content you can find here (you can access the content with a unimib account).

  2. Launch the application:

npm run start