Desenvolvimento de uma aplicação full-stack utilizando Angular e Spring Boot
Criar uma aplicação que permita armazenar dados de clientes e veículos, facilitando a geração de orçamentos e ordens de serviço, além de controle de pagamentos
- Java
- Angular
- Spring Boot
- MySQL
- Hibernate
- JPA
- API Restful
- Maven
- JUnit
- Desenvolvimento da aplicação full-stack
- Implementação de funcionalidades de CRUD (criar, ler, atualizar e deletar)
- Integração com banco de dados MySQL
- Implementação de autenticação e autorização
- Gerenciamento de projetos
- Trabalho independente
- Resolução de problemas
- Desenvolvimento de soluções
Projeto destinado a ser implementado em um ambiente real, focado em armazenar dados de clientes e veículos, facilitando a geração de orçamentos e ordens de serviço, eliminando o retrabalho de preenchimento manual, possibilitando também o controle dos serviços e gestão de pagamentos efetuados pelos clientes.
This project was generated with Angular CLI version 17.3.7.
Run mvn spring-boot:run in crud-spring folder
Run ng serve in crud-angular folder, for a dev server. Navigate to http://localhost:4200/. The application will automatically reload if you change any of the source files.
Run ng generate component component-name to generate a new component. You can also use ng generate directive|pipe|service|class|guard|interface|enum|module.
Run ng build to build the project. The build artifacts will be stored in the dist/ directory.
Run ng test to execute the unit tests via Karma.
Run ng e2e to execute the end-to-end tests via a platform of your choice. To use this command, you need to first add a package that implements end-to-end testing capabilities.
To get more help on the Angular CLI use ng help or go check out the Angular CLI Overview and Command Reference page.
This project uses MySQL as the database. Follow the instructions below to configure the database locally:
Ensure that MySQL is installed and running. You can download the MySQL Community Server here.
Run the following SQL commands to create the database and user:
CREATE DATABASE my_database;
CREATE USER 'my_user'@'localhost' IDENTIFIED BY 'my_password';
GRANT ALL PRIVILEGES ON my_database.* TO 'my_user'@'localhost';
FLUSH PRIVILEGES;
Before running the application, you need to configure the database credentials.
1. **Create a `.env` File**
Create a file named `.env` in the root of the project (crud-spring/.env) with the following content:
```env
DB_URL=jdbc:mysql://localhost:3306/my_database
DB_USERNAME=my_user
DB_PASSWORD=my_password