DePinho Multimedia is a website designed to make it easier for customers of YouTuber Gabriel De Pinho to purchase new multimedia devices. The site offers product filtering options based on the customer’s car, displaying only the multimedia models compatible with their vehicle.
- Arthur Ferreira Costa
- Gabriel Ferreira Amaral
- Gabriel Pongelupe de Carvalho
- Pedro Henrique Braga de Castro
- Renato Cazzoletti
- Eveline Alonso Veloso
- Juliana Amaral Baroni de Carvalho
Make sure you have the following software installed on your machine:
git clone https://github.com/ICEI-PUC-Minas-PPLES-TI/plf-es-2024-1-ti3-8966100-de-pinho-multimidias.git
cd plf-es-2024-1-ti3-8966100-de-pinho-multimidias-
Set your database credentials in the
application.propertiesfile located insrc/main/resources:spring.datasource.username=your-username spring.datasource.password=your-password
In the CORS configuration file, update the settings to allow the frontend running on localhost:8081:
.allowedOrigins("http://127.0.0.1:8081")In the project root directory, run:
mvn clean installStill in the root directory, run:
mvn spring-boot:runThe application will be running at http://localhost:8080.
-
Register and Login:
- Register as a new user or log in with your existing credentials.
-
Browse Products:
- Use the filter to select your vehicle model and view compatible products.
-
Add to Cart:
- Add desired products to your shopping cart.
-
Checkout:
- Fill in the required payment details and complete your purchase.
To log in as an administrator, you must send a request via Postman:
-
Open Postman and create a new POST request.
-
URL:
http://localhost:8080/usuario/register -
Body: Select
rawand chooseJSONformat. Insert the admin credentials as follows:{ "email": "teste@123412", "senha": "luisa1234", "primeiroNome": "Gabriel", "ultimoNome": "Enzo", "contato": "(37) 12345-6789", "role": "ADMINISTRADOR" } -
Send the request. After logging in with this user, a token will be generated in your browser’s LocalStorage. This token must be used in subsequent requests to access administrative features.