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.
- Clone the repository:
git clone https://github.com/I2Tunimib/I2T-backend.git
- Install all required packages:
cd I2T-backend && npm install
- 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.
- 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.
- Clone the repository:
git clone https://github.com/I2Tunimib/I2T-backend.git
- 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.
- 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.
- Clone the repository:
git clone https://github.com/I2Tunimib/I2T-frontend.git
- Install all required packages:
cd I2T-frontend && npm install
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).Launch the application:
npm run start