An open API service indexing awesome lists of open source software.

https://github.com/duartemcsilva/stock-echoes-server

Project to exploring Quarkus possibilities
https://github.com/duartemcsilva/stock-echoes-server

java quarkus sql

Last synced: 9 months ago
JSON representation

Project to exploring Quarkus possibilities

Awesome Lists containing this project

README

          

# stock-echoes-server
````mermaid
classDiagram
class User {
- id: Long
- name: String
- email: String
- birth_date: String
}

class Portfolio {
- id: Long
- user_id: Long
- name: String
- created: Date
}

class Ticker {
- isin: String
- symbol: String
- company_name: String
}

class Holding {
- id: String
- portfolio_id: Long
- symbol: String
- name: String
- quantity: int
- avgCost: BigDecimal
}

class Transaction {
- id: Long
- portfolio_id: Long
- date: Date
- quantity: int
- price: BigDecimal
}

%% Relationships

User "1" --> "*" Portfolio
Portfolio "1" --> "*" Holding
Portfolio "1" --> "*" Transaction
Transaction "*" -->"1" Ticker
````

## Extensions

To add an extension, you can write the command:

```shell script
./mvnw quarkus:add-extension -Dextensions='(extension name)'
```

| Dependency | Purpose | Use Case |
|-----------------------------|--------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------|
| **`hibernate-orm-panache`** | ORM framework to map Java objects to database tables and simplify DB access. | Used for interacting with relational databases using Java objects (CRUD operations). |
| **`jdbc-postgresql`** | JDBC driver for PostgreSQL, allowing Java applications to connect to PostgreSQL databases. | Used to directly connect Java applications to PostgreSQL databases via JDBC. |
| **`resteasy`** | JAX-RS implementation to build RESTful web services in Java. | Used for creating REST APIs and handling HTTP requests and responses. |
| **`resteasy-jackson`** | Integrates Jackson for JSON serialization/deserialization in RESTful services. | Automatically converts Java objects to JSON and vice versa in RESTful APIs. |
| **`lombok`** | Reduces the necessity of writing boilerplate code. | Automatically creates getters, setters and other methods when @Data is used on Entities |
| **`quarkus-resteasy-multipart`** | Enables receiving complex form-data in the body of requests | |

### REST

Easily start your REST Web Services

[Related guide section...](https://quarkus.io/guides/getting-started-reactive#reactive-jax-rs-resources)