A simple CRUD application to play around with - Next.js + TRPC & Spring Boot + JPA on Kotlin
- Technically, we need to simply run
docker-compose up(ordocker-compose up --buildfor the first run)
- But for a new setup we need to pre-populate the "known" secrets in
.envfile sinceauth-serviceneeds secure secrets - To generate and set new secrets run -
cd auth-service && node bin/generateKeyPair.mjs. This generates a new password protected RSA key pair for JWT signing (and new JWKS to be copied)- Copy the pem key file secret in the
auth-service/secrets/development.envfile and update JWKS file - Now run -
node generate_dev_env_file.mjsand note the random secret - Using this new random secret, in auth-service also run
node bin/lockSecret.mjs development <secret>to "lock" the secrets in the "auth-service" - Finally run
docker-compose up --build
- Comment
api-serviceandweb-servicein thedocker-compose.ymlfile - Run
docker-compose up --build. This will start the DB, migrate the DB and start a Node.js JWT+JWKS Auth service - Go to the API (todo-pro-api) and run the Spring Boot application with Gradle (I usually do this from IntelliJ Idea)
- Go the the Web app (todo-pro-web) and run the Next.js app with
yarn dev - This allows for quick feedback loop
- This application is under development
- Priority
- Search (by text / date)
- Tags (search by tag)