Build a CRUD Rest API with Kotlin, Postgres, Docker and docker compose

  Рет қаралды 4,639

Francesco Ciulla

Francesco Ciulla

Күн бұрын

Let's create a CRUD Rest API in Kotlin, using:
- Spring boot
- Gradle
- Hibernate
- Postgres
- Docker
- Docker Compose
All the code will be available on GitHub:
github.com/FrancescoXX/kotlin...
francescociulla.com/
0:00 Intro, project initialization, dependencies
6:45 App project: database configuration, User Entitity, User Repository, User Controller
23:00 Dockerization: Dockerfile, Docker Compose
30:55 Running and Building Services
33:45 Test Application

Пікірлер: 24
@zahid_9217
@zahid_9217 Жыл бұрын
This is a great tutorial on how to build a CRUD Rest API using Kotlin, Postgres, Docker, and docker-compose. The presenter does an excellent job of explaining each step in detail, making it easy to follow along even if you're new to these technologies. The code is well-organized and easy to understand, and the end result is a fully functional API that you can use as a starting point for your own projects. Highly recommend checking this out if you're interested in learning how to build APIs!
@francescociulla
@francescociulla Жыл бұрын
francescociulla.com/ 0:00 Intro, project initialization, dependencies 6:45 App project: database configuration, User Entitity, User Repository, User Controller 23:00 Dockerization: Dockerfile, Docker Compose 30:55 Running and Building Services 33:45 Test Application
@ernestguevara5968
@ernestguevara5968 5 ай бұрын
34:47 one of the most important part, I've created a sample app without hibernate and I needed to create tables manually, this explain it well. Thanks!
@francescociulla
@francescociulla 5 ай бұрын
thanks! your comment has been featured here twitter.com/FrancescoCiull4/status/1762788847316779186
@claudioegv
@claudioegv Жыл бұрын
Thanks, it is a great job you do.
@francescociulla
@francescociulla Жыл бұрын
thanks Claudio!!
@GiuliaBani20
@GiuliaBani20 Жыл бұрын
Great tutorial! 👏🏼
@francescociulla
@francescociulla Жыл бұрын
💚
@krbr4552
@krbr4552 Жыл бұрын
Thanks you for help
@francescociulla
@francescociulla Жыл бұрын
you are welcome!
@surajmaity6194
@surajmaity6194 Жыл бұрын
Nice Video ... I like it 💌
@francescociulla
@francescociulla Жыл бұрын
thanks Suraj 🔥
@surajmaity6194
@surajmaity6194 Жыл бұрын
@@francescociulla you're welcome Francesco
@francescociulla
@francescociulla Жыл бұрын
@@surajmaity6194did you check the Java spring boot one?
@surajmaity6194
@surajmaity6194 Жыл бұрын
@@francescociulla I have seen that you have made many videos of CRUD API ... will check it out...
@francescociulla
@francescociulla Жыл бұрын
@@surajmaity6194 let me know what do you think!
@ikiddoistudio64
@ikiddoistudio64 Жыл бұрын
what should i use for image for the springboot app?
@francescociulla
@francescociulla Жыл бұрын
what do you mean? you can use that one or the amazoncorretto one. I will probably make another video using the mvn one and building it directly inside the image instead of building it locally
@MrRicardosgeral
@MrRicardosgeral 4 ай бұрын
What about dtos and mappers? Arent they required for best practices?
@francescociulla
@francescociulla 4 ай бұрын
this is a basic example, focused on the connection betwen the kotlin app and the postgres database, using docker compose
@user-ty4lg2yj5k
@user-ty4lg2yj5k 2 ай бұрын
I love your content. however im getting this error upon following your instruction "Error: Unable to access jarfile ./build/libs/test-0.0.1-SNAPSHOT.jar" when i run "docker compose up". im using windows docker locally, what could be the cause of this error?
@francescociulla
@francescociulla 2 ай бұрын
you are welcome. did you try to clone the repo and run it? I think it's something in the configuration of the names of the services.
@user-ty4lg2yj5k
@user-ty4lg2yj5k 2 ай бұрын
@@francescociulla I tried running the repo and only the DB is working but the app itself is getting this error: [kotlinapp 4/4] RUN ./gradlew clean build -x test: 0.775 /bin/sh: ./gradlew: not found ------ time="2024-05-18T21:30:39+08:00" level=warning msg="current commit information was not captured by the build" error="failed to read current commit information with git rev-parse --is-inside-work-tree" failed to solve: process "/bin/sh -c ./gradlew clean build -x test" did not complete successfully: exit code: 127 PS D:\kotlin-live>
Викторина от МАМЫ 🆘 | WICSUR #shorts
00:58
Бискас
Рет қаралды 4,2 МЛН
MongoDB with Docker in IntelliJ IDEA
34:43
IntelliJ IDEA, a JetBrains IDE
Рет қаралды 22 М.
APIs for Beginners 2023 - How to use an API (Full Course / Tutorial)
3:07:07
freeCodeCamp.org
Рет қаралды 1,9 МЛН
How to create a great dev environment with Docker
29:55
Patrick Loeber
Рет қаралды 257 М.
Spring + Kotlin = Modern + Reactive + Productive by: Josh Long and James Ward
44:28
Database migrations with Flyway, Spring Boot and Kotlin and Postgres
30:27
Codersee- Kotlin on the backend
Рет қаралды 535
Spring Boot & Kotlin Tutorial - Crash Course For Java Devs
32:15
Marco Codes
Рет қаралды 12 М.
Build a Rest API with GoLang
34:14
Laith Academy
Рет қаралды 115 М.
Build APIs with Ktor and Kotlin
9:30
Awesome
Рет қаралды 32 М.
Tag him😳💕 #miniphone #iphone #samsung #smartphone #fy
0:11
Pockify™
Рет қаралды 2,8 МЛН