Bootcamp süresince geliştirilen spring boot projesine ait repodur.
- Maven
- Docker
- Java 11
- PostgreSQL
- Java 11
- Kotlin 1.5.31
- Spring Boot
- Spring Data JPA
- PostgreSQL
- H2 In memory database
- Flyway
- Hamcrest
- OpenAPI documentation
- Docker
- Docker compose
- JUnit 5
Proje 2 şekilde çalıştırılabilir.
- Projeyi cihazınıza kopyalayın:
git clone https://github.com/aoserdardemirkol/Spring-API-Blog.git - Proje ana dizinine gidin:
cd Spring-API-Blog mvn clean installile çalıştırılabilir jar dosyasını oluşturun.mvn spring-boot:runile projeyi çalıştırın.
http://localhost:8080adresinde API,
http://localhost:5432adresinde ise PostgreSQL çalışacaktır
- Projeyi cihazınıza kopyalayın:
git clone https://github.com/aoserdardemirkol/Spring-API-Blog.git - Proje ana dizinine gidin:
cd Spring-API-Blog docker build -t blog .komutu ile docker image oluşturundocker-compose upkomutu ile containerları çalıştırın.
http://localhost:9090adresinde API,
http://localhost:5433adresinde ise PostgreSQL çalışacaktır
Swagger UI verilen url de çalışacaktır.
http://localhost:${PORT}/swagger-ui.html
!Port değeri genelde 8080 dir. ancak uygulama hangi portda çalışıyor ise ${PORT} değeri yerine uygulamanın çalıştığı portu yazınız.
Bu uygulamada 4 adet API vardır.
JUnit test coverage 100% ve Integration testleri yapılmıştır.
| Controller | Metot | Adres | Açıklama |
|---|---|---|---|
| UsersController | GET | /v1/users | Bütün kullanıcıları listeler. |
| GET | /v1/users/0 | id değeri 0 olan kullanıcıyı getirir. | |
| POST | /v1/users | Kullanıcı oluşturur. | |
| PUT | /v1/users/0 | id değeri 0 olan kullanıcıyı günceller. | |
| DELETE | /v1/users/0 | id değerş 0 olan kullanıcıyı siler. | |
| TagController | GET | /v1/tag | Bütün Tag leri listeler. |
| GET | /v1/tag/0 | id değeri 0 olan Tag i getirir. | |
| POST | /v1/tag | Tag oluşturur. | |
| PUT | /v1/tag/0 | id değeri 0 olan Tag günceller. | |
| DELETE | /v1/tag/0 | id değeri 0 olan Tag siler. | |
| EntryController | GET | /v1/entry | Bütün gönderileri listeler. |
| GET | /v1/entry/0 | id değeri 0 olan gönderiyi getirir. | |
| POST | /v1/entry/0 | id değeri 0 olan kullanıcıya ait gönderi oluşturur. | |
| PUT | /v1/entry/0 | id değeri 0 olan gönderiyi günceller. | |
| DELETE | /v1/entry/0 | id değeri 0 olan gönderiyi siler. | |
| CommentController | GET | /v1/comment | Bütün yorumları listeler. |
| GET | /v1/comment/0 | id değeri 0 olan yorumu getirir. | |
| POST | /v1/comment | Yorum oluşturur | |
| PUT | /v1/comment/0 | id değeri 0 olan yorumu günceller. | |
| DELETE | /v1/comment/0 | id değeri 0 olan yorumu siler. |
Bu repo Ali Osman Serdar Demirkol tarafından bootcamp sürecinde oluşturulmuştur.

