https://github.com/avinash4231/dockernize-studentcrud-api-using-spring-boot
Create a Spring Boot Student CRUD API, integrate with an MYSQL database, and containerize it using Docker for consistent, scalable, and portable deployment across various environments.
https://github.com/avinash4231/dockernize-studentcrud-api-using-spring-boot
crud-operation docker hibernate jpa rest-api spring-boot swagger-ui
Last synced: about 2 months ago
JSON representation
Create a Spring Boot Student CRUD API, integrate with an MYSQL database, and containerize it using Docker for consistent, scalable, and portable deployment across various environments.
- Host: GitHub
- URL: https://github.com/avinash4231/dockernize-studentcrud-api-using-spring-boot
- Owner: Avinash4231
- Created: 2024-05-20T08:36:28.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-05-21T10:33:50.000Z (about 2 years ago)
- Last Synced: 2025-04-02T13:14:21.231Z (about 1 year ago)
- Topics: crud-operation, docker, hibernate, jpa, rest-api, spring-boot, swagger-ui
- Language: Java
- Homepage:
- Size: 69.3 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Student CRUD RestAPi
## Overview
StudentCRUD API is a Spring Boot application that provides a RESTful API for managing student records. This project demonstrates basic CRUD (Create, Read, Update, Delete) operations and is Dockerized for easy deployment.
## Demo Video
https://github.com/Avinash4231/Dockernize-studentcrud-api-using-spring-boot/assets/119235391/ba3a9ce9-0a6d-45b5-8685-31cde5cd8740
#### Prerequisite
Installed: Docker, Java 1.8, Maven 3.x
## Introduction
Crud Operation Spring Boot with Docker
#### Steps
##### Clone source code from git
```
$ git clone https://github.com/Avinash4231/Dockernize-studentcrud-api-using-spring-boot.git .
```
##### Build project with Maven
```
$ mvn clean install
#should be maven test closed (skip test)
#IntelijIDEA steps -> File -> Settings -> Build,Execituion.. -> Build Tools -> Maven -> Runner -> Properties -> Skip Test (Should be Checked)
```
##### Up docker-compose
```
$ docker-compose up -d
#If your spring boot exit(stopped)
#IntelijIDEA steps -> File -> Settings -> Build,Execituion.. -> Docker -> Unix Socket (Should be Checked)
```
##### Test application
for test the running docker image
```
$ docker image ls
```
for test the running docker container
```
$ docker container ps
```
for test the running docker-compose
```
$ docker-compose ps
```