0% found this document useful (0 votes)
8 views7 pages

Web Programming Project Report 2024

The document is a practical class report for a Web Programming course at Pythagoras University, detailing the development of a user management project using Spring Tool Suite and Postman. It covers the introduction of the tools, development environment setup, implementation of key components, and methods for user management. The report concludes with a summary of the process and results achieved through the project.

Translated by

ScribdTranslations
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
8 views7 pages

Web Programming Project Report 2024

The document is a practical class report for a Web Programming course at Pythagoras University, detailing the development of a user management project using Spring Tool Suite and Postman. It covers the introduction of the tools, development environment setup, implementation of key components, and methods for user management. The report concludes with a summary of the process and results achieved through the project.

Translated by

ScribdTranslations
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

Pythagoras University Unopar Anhanguera

Software Engineering - Bachelor's Degree

Portfolio - Practical class report:


Course name: Web programming.

Saint Joseph of Ribamar/MA


2024
2

Portfolio - Practical class report

Name of the subject: Web programming.

Portfolio work presented as a partial requirement for obtaining points for the semester average.

Tutor:

Saint Joseph of Ribamar/MA


2024
3

Summary:

1 Introduction 4
2 Development 6
3 Method 6
4 Results 8
3 Conclusion 9

Saint Joseph of Ribamar/MA


2024
4

1. Introduction

Introduction to Spring Tool Suite and Postman Software

In the ever-evolving world of software development, tools


efficient ones play a crucial role in simplifying complex tasks. Two
among these widely used tools are the Spring Tool Suite and Postman, each
contributing to specific areas of the development life cycle of
software.

Spring Tool Suite (STS):

Spring Tool Suite, developed by Pivotal Software, is an environment for


integrated development environment (IDE) based on Eclipse, designed specifically for
facilitate the development of applications based on the Spring Framework. The Spring
Framework is a widely adopted structure for Java applications.
development of robust and scalable enterprise applications. The STS simplifies the
creation, debugging, and deployment process of Spring applications, providing
intuitive tools, such as project creation assistants, editors of
XML configuration and support for integrated testing.

Postman:

Postman is a collaboration tool for API development that


simplifies the process of testing, documenting, and sharing APIs. It offers
an intuitive and easy-to-use interface for sending HTTP requests, viewing
answers, automate test workflows and generate detailed documentation.
With resources like request collections, variable environments, and support for
automated tests, Postman has become a popular choice among
developers, testers, and API teams around the world.

In summary, the Spring Tool Suite and Postman are two valuable tools that
play complementary roles in the software development process.
While the Spring Tool Suite simplifies the development of Java applications
based on the Spring Framework, Postman simplifies testing and collaboration around
of APIs, making them essential for developers and development teams
of modern software.

2. Development

Development Environment: To start the practical class, it is necessary to configure the


development environment. It is recommended to use Eclipse with Spring Tool Suite.
available [Link]/toolsAdditionally, it is necessary to have Postman installed,
available [Link]/downloads, and Git, available at [Link]/downloads
if you wish to version the project.

Saint Joseph of Ribamar/MA


2024
5

Base Project Configuration with Spring:


1. Use the [Link] create the base project with the Spring structure.
Select the appropriate options, such as Maven, Java 17, Spring version 3.0.0,
packaging JAR and adding the Spring Web dependency. Click on 'generate' and
unzip the downloaded project in the workspace.

Spring Tool Suite Configuration: 2. Open the Spring Tool Suite and choose the
workspace. Import the existing Maven project by following the path 'File > Import > '
Maven > Existing Maven projects
previous steps and the [Link] file.

Implementation of Entities and Controllers: 3. Create the User class in the package
"entities" inside src/main/java, with the basic attributes and necessary annotations.
Next, create the UserResource class in the 'resource' package with the annotations
suitable for defining the controller.

Database Configuration: 4. Configure the H2 database and the


data persistence with JPA, adding the necessary dependencies in the file
[Link] and configuring the [Link] and [Link] files
in src/main/resources.

Implementation of Repositories and Services: 5. Create the UserRepository interface in


package 'repositories' and the interface UserService in the 'services' package, extending the
JpaRepository class and implementing the necessary methods.

Exception Handling: 6. Implement the classes for exception handling,


like ResourceNotFoundException, StandardError and ResourceExceptionHandler,
ensuring proper error handling in the application.

Application Test: 7. Use Postman to test the functionalities


implemented, including the routes defined in the UserResource controller.

3. Methods

The methods used in the development of the user management project


with Spring are:
[Link]: Método responsável por retornar todos os usuários cadastrados no
system.
[Link]: Method that searches for a user by their unique identifier.
[Link]: Method used to add a new user to the system.
[Link]: Method to delete an existing user in the system.
[Link]: Method that allows updating the information of an already existing user.
registered.
São José de Ribamar/MA
2024
6

These methods were implemented in the UserService interface in the 'services' package.
as specified in the reference document. They are essential for the
basic operations of a user management system (CRUD - Create,
Read, Update, Delete.

4. Results

Resultado postman:

São José de Ribamar/MA


2024
7

Download the project:

6. Conclusion

This technical report detailed the process of conducting a practical class for
development of a user management project using the Spring framework and the
Postman tool. The step-by-step implementation of the system's features, from the
configuration of the development environment up to the testing of the API routes, provides a
comprehensive understanding of the software development process using these
tools

Saint Joseph of Ribamar/MA


2024

You might also like