Backend API for RTogether web application
Before starting, make sure you have the following dependencies installed:
- Create a
.envfile in the root directory of the project based on the.env.examplefile.
cp .env.example .envMake the build-and-run.sh script executable:
chmod +x build-and-run.shExecute the script to build and run the project:
./build-and-run.shMake the podman-build-and-run.sh script executable:
chmod +x podman-build-and-run.shExecute the script to build and run the project:
./podman-build-and-run.shIf you prefer not to use the scripts, follow these steps:
- Export env variables
export $(cat .env | xargs)- Build the project using Maven:
mvn clean package -DskipTests- Build the Docker (or Podman) image:
docker-compose build
# or
podman-compose build- Start the containers:
docker-compose up -d
# or
podman-compose up -d- Execute the tests:
mvn test