Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/atuandev/bookstore-backend
REST API for bookstore
https://github.com/atuandev/bookstore-backend
docker heidisql intellij-idea lombok mapstruct mysql spring spring-boot spring-data-jpa spring-security spring-security-oauth2 swagger
Last synced: 21 days ago
JSON representation
REST API for bookstore
- Host: GitHub
- URL: https://github.com/atuandev/bookstore-backend
- Owner: atuandev
- Created: 2024-10-14T09:19:36.000Z (about 1 month ago)
- Default Branch: master
- Last Pushed: 2024-10-29T12:34:23.000Z (22 days ago)
- Last Synced: 2024-10-29T15:00:32.299Z (22 days ago)
- Topics: docker, heidisql, intellij-idea, lombok, mapstruct, mysql, spring, spring-boot, spring-data-jpa, spring-security, spring-security-oauth2, swagger
- Language: Java
- Homepage:
- Size: 4.98 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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](https://github.com/user-attachments/assets/b59e4dd2-124a-4cce-86d5-2b5a1311af92)
> Tutorial MySQL in Docker: https://www.youtube.com/watch?v=Oa7bpIZ6RxI&t=777s&ab_channel=Devteria6. Use HeidiSQL to connect the database with **username**: `root`, **password**: `root`
![image](https://github.com/user-attachments/assets/96e321da-49f6-4188-9724-74c2f3d759e1)
8. Use **Intellij** to run a project
9. Test API with **Postman** or **SwaggerUI** at `http://localhost:8080/bookstore/swagger-ui/index.html`Login Admin account:
- username: `admin`
- password: `admin`![image](https://github.com/user-attachments/assets/5685947b-ee0b-4b32-b388-d5fdcd407861)