“FIRE: Financial Independence, Retire Early.”
the FIRE app - BACKEND
MindMap
Start with a simple Server for FIRE.
Microservices
Spring for GraphQL
-
Setup project. start.spring.io
- Gradle-Kotlin
- Kotlin
- Java 17
- Spring Web
- Spring GraphQL
-
Add GraphQL Schema CodeGen Netflix DGS Codegen
plugins { id("com.netflix.dgs.codegen") version "6.0.2" } tasks.generateJava { language = "kotlin" schemaPaths = mutableListOf("${projectDir}/src/main/resources/graphql") packageName = "com.cuizhanming.template.kotlin.codegen" }
-
Add GraphQL Schema, under schemaPath configured as above step
/src/main/resources/graphql
type TaxCredit { id: ID! name: String! year: Int! amount: Float! type: String! issuedAt: String! createdAt: String! updatedAt: String! } type Query { availableCredits(year: String): [TaxCredit] }