- Require download
- Java 21
- Maven
- Node 14+ (Node Version Manager recommended)
- Docker
- No download required
Clone the project
git clone git@gitlab.rnl.tecnico.ulisboa.pt:<REPO>Go to the project directory
cd src/To run the database with Docker (recommended), run the following command:
docker compose upAlternatively, you can create services that will be run in the background:
docker compose up -dTo stop the database, run the following command:
docker compose downCreate a copy of the application-local.properties file.
cp ./backend/src/main/resources/application.properties.example ./backend/src/main/resources/application.propertiesIf you're running your database using Docker, the datasource variables should match the ones in Docker-compose.yml.
To build and run the backend, execute the following commands:
cd ./backend
mvn clean spring-boot:runCreate a copy of the example.env file named .env.
cp ./frontend/example.env ./frontend/.envNow, you need to install the dependencies:
cd ./frontend
npm iTo run the frontend, run the following command:
npm run devIn order to access the database, you can use the following command (if you're using the provided Docker Compose file, PORT should be 7654, USER should be postgres and DB_NAME should be deidb):
psql -h localhost -p <PORT> -U <USER> <DB_NAME>