filmov
tv
Robot writes entire Spring Boot Microservice from scratch in VSCode.
![preview_player](https://i.ytimg.com/vi/L2xPNnAmFHw/maxresdefault.jpg)
Показать описание
- Create a Spring Boot Microservice with Tests and Swagger UI Fully Autonomously
- Codes from scratch, but uses a reference project and context
- Accelerated from 20 minutes because OpenAI GPT-4 API was slow
Info -
- How using an extension helps the AI Agent
- Human Software Developers get almost everything the need to develop from an IDE and a conversation
- Reference Code to imitate
- Access to see which files already exist in the project
- Helps maintain package structure
- Symbolic references in other files, methods, classes, properties
- Dramatically improves likelihood to compile on the first attempt
- Ensures consistency
- Order of Operations Matters
1. Gather the core dependencies to ground the project in a specific framework
2. Construct the API Model - This is a REST API, and this representation is the core of all business logic
3. Construct the Database Schema - How that we have the API Model as a reference, we can ground the physical storage design in the needs of that model
4. Construct a mapper - Once both models have been defined, creating a mapper between them is easy.
5. Create Service Class for business logic - now that the backend is ready, and mapping exists, we can construct the core business logic
6. Create Rest Controller - with everything else in place, we can now wrap everything in a well-grounded interface
7. Tests - Without business requirements, only very simple tests can be created, but they will at least exercise the code paths.