Skip to content

Latest commit

 

History

History
66 lines (46 loc) · 1.67 KB

README.md

File metadata and controls

66 lines (46 loc) · 1.67 KB

Forum Application

Codacy Badge Codacy Badge

Built using

Getting started

Copy the example.env to .env:

cp example.env .env

Spin up database with Docker composer

docker compose up

Build

./gradlew build -x test

Run

./gradlew bootRun

# With datadog agent
java -javaagent:libs/dd-java-agent.jar -Ddd.logs.injection=true -Ddd.service=forum -Ddd.env=local -jar build/libs/forum.jar

Test

./gradlew test

Endpoints

You can run the SQL script on the resources path to include some records on the database.

Authenticate

POST http://localhost:8080/auth

{
    "email": "aluno@email.com",
    "password": "123456"
}

Get user profile

GET http://localhost:8080/me

Header: Authorization: Bearer token