... | ... | @@ -47,7 +47,52 @@ More information to download: |
|
|
|
|
|
## Configurando o Backend
|
|
|
|
|
|
Realizar o clone do repositório em ############# com o comando `git clone`.
|
|
|
## Prerequisites
|
|
|
|
|
|
Before installing and running this project, ensure you have the following prerequisites:
|
|
|
|
|
|
1. **Java**: Make sure you have Java installed on your system. You can download and install Java from [here](https://www.oracle.com/br/java/technologies/downloads/#jdk21-windows).
|
|
|
1. **Maven**: Maven is used as a build automation tool for Java projects. Make sure you have Maven installed. You can download and install Maven from [here](https://maven.apache.org/download.cgi).
|
|
|
1. **Docker Desktop**: Ensure you have Docker Desktop installed on your system. Docker Desktop provides an easy-to-install application for Docker Engine, Kubernetes, and other tools. You can download and install Docker Desktop from [here](https://www.docker.com/products/docker-desktop).
|
|
|
|
|
|
## Installation
|
|
|
|
|
|
1. Clone the repository:
|
|
|
|
|
|
```shell
|
|
|
git clone https://tools.ages.pucrs.br/ensportive/ensportive-backend.git
|
|
|
```
|
|
|
1. Navigate to the project directory:
|
|
|
|
|
|
```shell
|
|
|
cd ensportive-backend
|
|
|
```
|
|
|
1. Build the project using Maven:
|
|
|
|
|
|
```shell
|
|
|
mvn clean install
|
|
|
```
|
|
|
|
|
|
## Usage
|
|
|
|
|
|
1. Create the Docker volume (only need to be done the first time):
|
|
|
|
|
|
```shell
|
|
|
docker volume create ensportive-db
|
|
|
```
|
|
|
1. Run the Docker compose file:
|
|
|
|
|
|
```shell
|
|
|
docker compose up
|
|
|
```
|
|
|
1. Run the application:
|
|
|
|
|
|
```shell
|
|
|
mvn spring-boot:run
|
|
|
```
|
|
|
|
|
|
This will start the backend server.
|
|
|
1. The backend server will be accessible at http://localhost:8080.
|
|
|
|
|
|
|
|
|
|
... | ... | |