This project has been developed using Spring Boot to calculate the user's body mass index and save the results to a MySQL database running in Docker.
First, make sure you have the following requirements to run this project smoothly on your computer:
- Java 20
- Intelij Idea Ultimate
- Docker
- Spring Data JDBC
- spring Data JPA
- Spring Web
- Spring Boot Devtools
- Mysql Connector J
- Lombok
- Swagger
- Model Mapper
-
Docker Desktop Download from this link.
-
-
git clone https://github.com/cdemir7/VKI_FinalProject.git
Open the downloaded folder in IntelliJ IDEA.
-
Configure the following properties in the
src/main/resources/application.properties
file by replacing the values of VERITABANI_ADI, KULLANICI_ADI, and PAROLA with your own:
spring.datasource.url=jdbc:mysql://localhost:3306/VERITABANI_ADI spring.datasource.username=KULLANICI_ADI spring.datasource.password=PAROLA-
Create a database in the MySQL server with the same name as specified in the application.properties file.
-
Run the project from IntelliJ IDEA.
-
-
- Open the following URL in a web browser:
Here, you can perform CRUD operations.
http://localhost:8080/swagger-ui/index.html#/
- Open the following URL in a web browser:
-
This project is licensed under the MIT License. See the LICENSE file for more information.
GET : localhost:8080/api/v1/user
POST : localhost:8080/api/v1/user
PUT : localhost:8080/api/v1/user/{id}
DELETE : localhost:8080/api/v1/user/{id}
Bu proje, kullanıcının vücut kitle endeksini hesaplamak ve sonuçları Docker'da çalışan bir MySQL veritabanına kaydetmek için Spring Boot kullanılarak geliştirilmiştir.
İlk olarak, bu projeyi bilgisayarınızda sorunsuz bir şekilde çalıştırmak için aşağıdaki gereksinimleri sahip olduğunuzdan emin olun:
- Java 20
- Intelij Idea Ultimate
- Docker
- Spring Data JDBC
- spring Data JPA
- Spring Web
- Spring Boot Devtools
- Mysql Connector J
- Lombok
- Swagger
- Model Mapper
-
Docker Desktop Download Bu linkten Docker Desktop'ı indirin.
-
-
git clone https://github.com/cdemir7/VKI_FinalProject.git
İndirdiğiniz klasörü Intelij Idea'da açın.
-
spring.datasource.url=jdbc:mysql://localhost:3306/VERITABANI_ADI spring.datasource.username=KULLANICI_ADI spring.datasource.password=PAROLA
VERITABANI_ADI, KULLANICI_ADI ve PAROLA değerlerini projedeki
src/main/resources/application.properties
yolundaki application.properties dosyasında değiştirin.
-
Veritabanında, application.properties dosyasındaki isimle aynı olacak şekilde veritabanı oluşturun.
-
Intelij Idea'dan projeyi çalıştırın.
-
-
-
web tarayıcısında yukarıdaki URL'i açın. Burada CRUD işlemlerini gerçekleştirebilirisiniz.
http://localhost:8080/swagger-ui/index.html#/
-
-
Bu proje MIT Lisansı ile lisanslanmıştır. Daha fazla bilgi için
LICENSEdosyasına bakın.