- TypeScript
- Go
- PostgreSQL
- AWS
- Node.js v22.11.0
- aws-cdk v2.173.4
cp .env.sample .env
cp client/.env.sample client/.env
Set the Amazon Cognito User Pool ID and Client ID and Cognito domain URL to be handled in the development environment in the environment variables of the .env
and client/.env
files.
COGNITO_USER_POOL_ID=
VITE_COGNITO_USER_POOL_ID=
VITE_COGNITO_CLIENT_ID=
VITE_COGNITO_DOMAIN=
make up
make migrate_up
make tidy
make fmt
make lint
make test
To make changes to the DB schema, create a file in api/internal/db/migration
and run migration.
- Generate migration file (you can do it manually)
- Implement DDL
- Execute migration
make migrate_create NAME="file name"
make migrate_up
If STEP is not passed as an argument, everything will be rolled back.
make migrate_down STEP=1
Implement the query in the file api/internal/db/query
.
Reference: https://docs.sqlc.dev/en/latest/howto/select.html
When adding a new model, add it to rename in api/sqlc.yml
so that the App prefix is not attached to the model name.
After implementing the query, run the splc generate
command.
make sqlc_gen
the model generated by the sqlc generate
command is placed in api/internal/model
.
The model implements business logic, etc.
The request handler implementation is placed in api/internal/handler
.
The request handler implements request validation, etc.
Implement request routing in api/internal/server/router.go
.
make npm_i_infra-ts
make cdk_bootstrap
make build_client
make cdk_deploy_all
make cdk_deploy STACK=StackName