Skip to content

This is a sandbox project to test and experiment things out. A Kotlin-based Spring Boot project equipped with Spring Security for robust authentication. Features a CI pipeline via GitHub Actions for seamless development and deployment.

Notifications You must be signed in to change notification settings

rribeiro1/forum-kotlin-spring-boot

Repository files navigation

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": "[email protected]",
    "password": "123456"
}

Get user profile

GET http://localhost:8080/me

Header: Authorization: Bearer token

About

This is a sandbox project to test and experiment things out. A Kotlin-based Spring Boot project equipped with Spring Security for robust authentication. Features a CI pipeline via GitHub Actions for seamless development and deployment.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •