https://github.com/braiso-22/springbootdemo
This is a project in kotlin with spring boot with only one feature "Students". It has the basics of all spring boot projects with JPA.
https://github.com/braiso-22/springbootdemo
docker docker-compose gradle gradle-kotlin-dsl kotlin spring-boot
Last synced: 2 months ago
JSON representation
This is a project in kotlin with spring boot with only one feature "Students". It has the basics of all spring boot projects with JPA.
- Host: GitHub
- URL: https://github.com/braiso-22/springbootdemo
- Owner: braiso-22
- Created: 2024-11-23T16:02:11.000Z (7 months ago)
- Default Branch: main
- Last Pushed: 2024-11-24T23:06:12.000Z (7 months ago)
- Last Synced: 2025-02-10T04:29:51.696Z (4 months ago)
- Topics: docker, docker-compose, gradle, gradle-kotlin-dsl, kotlin, spring-boot
- Language: Kotlin
- Homepage:
- Size: 58.6 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# Spring Boot Demo
This is a project in kotlin with spring boot with only one feature "Students".
It has the basics of all spring boot projects with JPA.
```
Controller, Service, Repository, Entity
```
I separated them by interfaces to maintain the domain decoupled.## API Entrypoints
### Swagger
I added the swagger dependency so you can test the endpoints from the explorer in a easy way### Postman
I created a postman collection with examples in the root folder of the project,
so you can import it and execute all of them.The entry points are these:
- GET http://localhost:8080/student
- POST http://localhost:8080/student
- PUT http://localhost:8080/student
- DELETE http://localhost:8080/student/{id}## How to start the project
### With docker
- Build it with
```shell
./gradlew bootJar
```- Execute the docker compose
```shell
docker compose up -d
```### The old way
- Install postgresql
- Create a db called student
- Hit run on your favourite IDE### Ready to go!! 😎
The project should be running in http://localhost:8080/