Build a Restful CRUD API using Kotlin, Spring Boot, H2, JPA and Hibernate.
-
Java - 1.8.x
-
Maven - 3.x.x
-
H2 - 1.4+
1. Clone the application
[email protected]:marleyiam/Kotin-Meetup-DF-Spring.git
2. Create H2 database
just use default testdb H2 database
3. Use regular H2 crenditals already defined
- open
src/main/resources/application.properties
2. Running the App
Type the following command in your terminal to run the app -
mvn spring-boot:run
The app will start running at http://localhost:8080.
The app defines following CRUD APIs.
GET /api/articles
POST /api/articles
GET /api/articles/{id}
PUT /api/articles/{id}
DELETE /api/articles/{id}
You can test them using postman or any other rest client.
You can find the base tutorial for this application below -
https://www.callicoder.com/kotlin-spring-boot-mysql-jpa-hibernate-rest-api-tutorial/