reesdev /
e-wallet-api
Simple backend projects built with Java and Spring Boot to demonstrate REST API development, database integration, and clean architecture.
Loading repository data…
AntonioJavaDeveloper / repository
A simple REST API built with Spring Boot 3 and Java 21 to demonstrate best practices, clean architecture, and core Spring features.
This project is a REST API built with Spring Boot 3 and Java 21, mainly aimed at demonstrating the fundamentals of REST architecture within the Spring ecosystem. It was structured to serve as a reference for best practices in code organization and as an example of using the main Spring Framework annotations.
Now the project fully supports Docker, making it easy to run and deploy in any environment. The Java service image is built using a multi-stage build, ensuring that the final container is as lightweight as possible — containing only what is necessary to run the application, without Maven and build tools.
The Game List API project simulates a list of games and their positions in rankings. Although it's a simple application, the goal is to clearly and practically demonstrate:
@RestController, @Service, @Repository, @Entity, @Transactional, @Autowired, etc.;The project is ready to run using Docker and Docker Compose.
git clone https://github.com/AntonioJavaDeveloper/game-list-api.git
cd game-list-api
cp .env.txt .env # Creates the .env file with the required environment variables
docker-compose up --build
The application will start on the port defined by the JAVA_SERVER_PORT variable in the .env file.
If not defined, it defaults to port 9000.
Available services:
games-app: Java applicationdev-postgresql: Postgres 15 databasedev-pgadmin: Web interface for database access (port 5050)The multi-stage build in the Dockerfile reduces the final backend image size by separating the build phase (with Maven) from the runtime phase (with a lightweight JDK based on Alpine).
└── br.com.javadeveloper.dslist
├── config # Global configurations (e.g., CORS)
├── controllers # REST API exposure
├── dto # Data Transfer Objects
├── entities # JPA entities mapped to the database
├── projections # Custom JPA projections
├── repositories # Spring Data JPA interfaces
└── service # Business logic layer
Make sure you have Java 21 and Maven installed.
git clone https://github.com/AntonioJavaDeveloper/game-list-api.git
cd game-list-api
./mvn spring-boot:run
The application will start on the port defined by the JAVA_SERVER_PORT environment variable, if it has been previously exported.
If not, it will default to port 9000, as defined in application.properties:
server.port=${JAVA_SERVER_PORT:9000}
⚠️ Spring Boot does not automatically read the
.envfile. To make theJAVA_SERVER_PORTvariable effective outside Docker, you need to export it manually in the terminal or configure it in your IDE.
| Method | Path | Description |
|---|---|---|
| GET | /games | List all games |
| GET | /games/{id} | Get game details |
| GET | /lists | List all game lists |
| GET | /lists/{listId}/games | List games within a specific list |
| POST | /lists/{listId}/replacement | Swap the position of two games |
Tests can be performed using the
test.httpfile in IntelliJ.
application-dev.properties: development profileapplication-test.properties: test profileapplication-prod.properties: simulated production profileYou can switch between profiles using:
-Dspring.profiles.active=dev
This project is not intended to be a complete market-level application. Instead, it was designed as a quick reference for beginner developers or those transitioning to backend with Java and Spring Boot.
Here you will find clear and straightforward examples of what makes up a modern RESTful API, with a structure ready to grow with safety and readability.
If you'd like to get in touch for opportunities or questions:
Developed by AntonioJavaDeveloper
Selected from shared topics, language and repository description—not editorial ratings.
reesdev /
Simple backend projects built with Java and Spring Boot to demonstrate REST API development, database integration, and clean architecture.
mohammadi-hr /
A simple Spring Boot REST API for managing books — built with Oracle Database to practice clean architecture, JPA, and RESTful design.
sheelamppal /
A simple Task Management App backend built with Java Spring Boot and SQL. Supports creating, updating, viewing, and deleting tasks via REST APIs. Includes CORS setup, error handling, and clean architecture. Ideal for learning Spring Boot backend.
Krishna-Mittall /
A simple Spring Boot REST API project that demonstrates CRUD-style operations using an in-memory data structure (ArrayList). This project focuses on clean architecture, validation, global exception handling, and RESTful API design, making it suitable for Java backend interview preparation.