An open API service indexing awesome lists of open source software.

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.

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/