Title: Weekly Update 24 [2022 wk27] – API Generator Progress
Video
TL;DR:
Pipeline Wizard: Merging in progress, moving slowly forward: gitlab-org/gitlab!90905 (merged), gitlab-org/gitlab!78276 (merged)
API Generator:
- Generated a prototype app that:
- can use D1 as Database
- Exposes a GraphQL API
- runs on Cloudflare Workers (doesn't use node.js core modules)
- Created a D1 mock object while I'm waiting for Cloudflare to release the first Beta
- Using Knex as a SQL ORM for safer code generation and to allow users to inherit the auto-generated code, then use it on a different SQL environment
- I then abstracted that prototype into a hygen template, now you can generate the app in two steps:
hygen repo init
, then add as many models as needed withhygen model new <Model Name>
The Generator is available at: https://gitlab.com/gitlab-org/incubation-engineering/jamstack/apigen