npm install -g @quobix/vacuum @typespec/compiler
cd docs/
npm install
Add spec to components
import them at main
update version at package.json
Build openapi file:
npm run build
Lint generated file:
npm run lint
Generate html file (redoc-static.html
):
npm run build-docs
cd ../
sh ./generate-resources.sh
Check generated resources here
brew install golang-migrate
brew install xo/xo/xo
export $(grep -v '^#' .env | xargs) && migrate -path internal/assets/migrations -database "postgres://${DB_USER}:${DB_PASSWORD}@${DB_HOST}:${DB_PORT}/${DB_NAME}?sslmode=disable" up
sh ./generate-xo-models.sh