This project aims to provide an API in Laravel to perform user registration, allowing a frontend (such as Vue.js, React, or other) to interact with the application to register, view, edit and delete users. The API will be ready to be consumed in web or mobile systems.
- PHP 8.1 programming language;
- Laravel Framework 10.48.25
- PostgreSQL 15.4 Open Source Database;
- Docker Desktop 4.36.0;
- Postman Version 11.21.0;
- The cadastro.sql file contains a copy of the database used.
- The docker-compose.yml file contains a configuration to create a container in docker, you need to change the location of the project in this line of code C:/laravel:/app replacing C:/laravel with a location of your preference where the project is located.
- GET /users: Lists all users.
- GET /users/{id}: Displays a specific user.
- POST /users: Creates a new user.
- PUT /users/{id}: Updates an existing user.
- DELETE /users/{id}: Deletes a user.
![]() |
![]() |
![]() |
![]() |
![]() |
|---|
- GET /endereco: Lists all address.
- POST /endereco: Creates a new address.
- GET /endereco/{id}: Displays a specific address.
- PUT /endereco/{id}: Updates an existing address.
- DELETE /endereco/{id}: Deletes an address.
![]() |
![]() |
![]() |
![]() |
![]() |
|---|
- GET /endereco: Lists all address unlinked.
![]() |
|---|
Before you begin, make sure you have docker installed and configured correctly on your machine. Change the path of your project folder in docker-compose.yml and follow the step below:
-
Open the terminal and navigate to the directory where the project files were saved.
-
Run the command below to starting the application.
docker-compose up










