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
- Hateoas
- Docker
- Docker compose
- JUnit 5
Projeyi çalıştırmanın 2 yolu vardır.
- Projeyi cihazınıza kopyalayın:
git clone https://github.com/ugurcandede/FolksDevBootcamp - Proje ana dizinine gidin:
cd FolksDevBootcamp docker build -t bootcamp-blog .komutu ile docker image oluşturundocker-compose upkomutu ile containerları çalıştırın.
http://localhost:9091adresinde API,
http://localhost:9092adresinde ise PostgreSQL çalışacaktır
- Projeyi cihazınıza kopyalayın:
git clone https://github.com/ugurcandede/FolksDevBootcamp - Proje ana dizinine gidin:
cd FolksDevBootcamp mvn clean installile çalıştırılabilir jar dosyasını oluşturun.mvn spring-boot:runile projeyi çalıştırın.
http://localhost:9091adresinde API,
http://localhost:9092adresinde ise PostgreSQL çalışacaktır
| Controller | Metot | Adres | Açıklama |
|---|---|---|---|
| UserController | GET | localhost:8080/v1/user | Bütün kullanıcıları listeler |
| GET | localhost:8080/v1/user/0 | ID 0 olan kullanıcıyı getirir | |
| POST | localhost:8080/v1/user | Kullanıcı oluşturur | |
| PUT | localhost:8080/v1/user/0 | ID 0 olan kullanıcıyı günceller | |
| DELETE | localhost:8080/v1/user/0 | ID 0 olan kullanıcıyı siler | |
| PostController | GET | localhost:8080/v1/post | Bütün gönderileri listeler |
| GET | localhost:8080/v1/post/0 | ID 0 olan gönderiyi getirir | |
| POST | localhost:8080/v1/post/0 | ID 0 olan kullanıcıya ait gönderi oluşturur | |
| PUT | localhost:8080/v1/post/0 | ID 0 olan gönderiyi günceller | |
| DELETE | localhost:8080/v1/post/0 | ID 0 olan gönderiyi siler | |
| CommentController | GET | localhost:8080/v1/comment | Bütün yorumları listeler |
| GET | localhost:8080/v1/comment/0 | ID 0 olan yorumu getirir | |
| POST | localhost:8080/v1/comment | Yorum oluşturur | |
| PUT | localhost:8080/v1/comment/0 | ID 0 olan yorumu günceller | |
| DELETE | localhost:8080/v1/comment/0 | ID 0 olan yorumu siler |
Ödevler ve commit geçmişi COMMITS dosyası içindedir.
Bu repo Ugurcan Dede tarafından bootcamp sürecinde oluşturulmuştur. GNU GPLv3 lisansına sahiptir.
