-
Notifications
You must be signed in to change notification settings - Fork 0
Home
DSListV2 - RESTful API for List Management - Wiki
Welcome to the wiki for the DSListV2 project!
This repository contains a RESTful API with a backend in Java and Spring Boot, aimed at list management.
Below, you'll find information about the project, its architecture, prerequisites, installation steps, and more.
DSListV2 was developed as part of the "IntensivΓ£o Java Spring" bootcamp, which took place in July 2023 and was taught by Professor Nelio Alves. The goal of the project is to create a powerful and efficient backend Spring Boot application using Java.
The project follows the following layer pattern:
- Frontend: JSON (HTTP Requests)
- Backend:
- Controllers
- DTO (Data Transfer Objects)
- Transactions
- Services
- Entities
- Repositories
- Projections
To clone the repository using SSH Key, run:
git clone git@github.com:olvericc/dsListV2.git
To clone using HTTPS Protocol, run:
git clone https://github.com/olvericc/dsListV2.git
Before you start working with the project, make sure you have the following tools and technologies installed:
- IDE: IntelliJ IDEA Ultimate
- SGBD: DBeaver Community
- APIs: Postman
- VCS: Git
- SDK: JDK 17 LTS (Zulu)
- Compilation Tool: Maven
- DB: Postgres
- DB: H2 Database
To set up your development environment using Docker, follow these steps:
Navigate to the docker folder in the project root (e.g., C:\dev\ws-java\dsListV2\docker).
Run the following commands in the terminal with the docker-compose.yml file:
docker-compose build
docker-compose up
To run the Spring Boot application using IntelliJ, you can either launch the application via the IDE's build tool or build it in the terminal:
-
Make sure you have JDK (Java Development Kit) 17 LTS installed and properly configured in the PATH.
-
Build the JAR package of your Spring Boot application using Maven:
mvn package
- Navigate to the folder where the JAR file was generated (e.g., target) and run the application:
cd target
java -jar filename.jar
- Replace "filename.jar" with the actual name of the JAR file generated by your application.
The application should now be accessible at http://localhost:8080/ or another configured port.
To test your RESTful API using Postman, follow these steps:
- Import the API Collection from the following link:
-
Start testing the endpoints by selecting the corresponding request from the collection, filling in any necessary parameters, and clicking the "Send" button to execute the request.
-
Inspect and validate the response from the server.
The following tools and technologies were used to create this project:
- Java: Programming language used (Version: 17 LTS)
- Spring Boot: Framework for building the application (Version: 3.1.2)
- Maven: Dependency Manager
- Spring Data JPA: Spring Framework subproject that supports and facilitates JPA (Java Persistence API) integration
- H2 Database: In-memory database for testing
- PostgreSQL: Relational database management system (Version: 15.0)
Release 1.0
Java Backend Developer: Initial part of the project - Eric Lopes Oliveira
- GitHub Profile: github.com/olvericc
- LinkedIn Profile: linkedin.com/in/ericlopesoliveira
This project is under Eric Lopes Oliveira's license.
This project was based on the following repository:
github.com/devsuperior/dslist-backend
π Thanks
- This project is purely for academic purposes.
- Future plans include adding more libraries and features.
- A frontend with Angular or React will be added.
- Deployment will be completed in the next version.
Thank you for visiting the DSListV2 repository! If you have any questions or suggestions, feel free to reach out to the author.
Happy coding! π