Skip to content

atuandev/bookstore-backend

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

71 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Spring API for BookStore

Requirement

  • JDK 21

Techs

  • Spring Boot
  • Spring Security
  • Spring Data JPA
  • Lombok
  • Mapstruct
  • Swagger UI
  • MySQL

Tools

  • IntelliJ IDEA 2024
  • Docker
  • HeidiSQL

Getting Started

  1. Clone project: git clone [email protected]:atuandev/bookstore-backend.git
  2. View all settings at application.yml
  3. Install MySQL from Docker docker pull mysql:8.4.0
  4. Run Container Docker docker run --name mysql-8.4.0 -p 3306:3306 -e MYSQL_ROOT_PASSWORD=root -d mysql:8.4.0

image

Tutorial MySQL in Docker: https://www.youtube.com/watch?v=Oa7bpIZ6RxI&t=777s&ab_channel=Devteria

  1. Use HeidiSQL to connect the database with username: root, password: root

image

  1. Use Intellij to run a project
  2. Test API with Postman or SwaggerUI at http://localhost:8080/bookstore/swagger-ui/index.html

Login Admin account:

  • username: admin
  • password: admin123

image

Environment Variable

  • MYSQL_PORT:... (default: 3306)
  • MYSQL_USER: (default: root)
  • MYSQL_PASS: (default: root)