Skip to content

Latest commit

 

History

History
38 lines (27 loc) · 1.43 KB

README.md

File metadata and controls

38 lines (27 loc) · 1.43 KB

Spring GPT

Spring Boot application made entirely using ChatGPT


This application was made entirely by prompting ChatGPT for its codes. Every piece of code generated by ChatGPT was copied and pasted manually inside the project's directory, creating the necessary files, importing and indenting the code accordingly.

Prompts

The entire chat transcription is here (Please excuse my grammar mistakes).

Running

Before starting the application, create a database in your PostgreSQL server named springgpt. After that, simply open the project in your favorite IDE and run the application.

Testing

To test the endpoints, import this collection in Postman. You can also run the endpoints using your IDE or simply running cURL in your terminal.

Endpoints

Method Path Description
POST /api/client Create client
PUT /api/client Edit client
DELETE /api/client/:id Delete client
GET /api/client Get all clients
GET /api/client/:id Get client by ID
POST /api/product Create product
PUT /api/product Edit product
DELETE /api/product/:id Delete product
GET /api/product Get all products
GET /api/product/:id Get product by ID