mirror of
https://github.com/labring/laf.git
synced 2026-01-25 16:07:45 +00:00
* design metering schema * add region bundle schema * remove prisma in gateway, website, storage * remove prisma in dependency module * remove prisma in account module * remove prisma in instance module * remove prisma in auth and user module * remove prisma in function and trigger module * remove prisma totally * add resource option & template api * rename resource template to bundle * add billing module & price calculation api * add response api typings * update app bundle api * impl billing task * impl billing payment task * restart app while updating bundle * update user profile api * fix account api response body * feat: bundle select * fix: upgrade payment * refactor(web): update package * refactor(web): upgrade type definitions --------- Co-authored-by: NightWhite <nightwhite634@gmail.com> * add pagination response decoration * feat(web): metering web (#1173) (cherry picked from commit 3793fbcb195bf22388784c30342afb4e1995c970) * chore: update entity typings * fix(web): modal height (#1175) * add application trial tier limit * feat(server): add invite code feature and billings pagination (#1183) * feat(server): process free trial billing * fix(web): update app state api & rules add api (#1184) * fix(web): update app state api (cherry picked from commit 33f89bfca718e17f62880c0a08959af345732fd5) * fix(web): rules add (cherry picked from commit a4cc073848d7d42b9bb55364636ebae7422e439e) * fix(web): id -> _id (cherry picked from commit 1bd3ab0a7d3372689306cf43cc49c3f6995045f7) * fix(server): update response struct of rules, add response types * refactor(web): api definitions (#1185) * fix(server): fix trial app logic * Feat definition (#1186) * refactor(web): api definitions * fix(web): show fee * merge main into design-metering * add metering yaml to laf helm charts --------- Co-authored-by: allence <lizhenq2009@gmail.com> Co-authored-by: NightWhite <nightwhite634@gmail.com> Co-authored-by: limbo <43649186+HUAHUAI23@users.noreply.github.com>
1.4 KiB
1.4 KiB
Intro
laf server is responsible for laf http api:
- auth & user
- region cluster
- app management
- app cloud function management
- app database management
- app storage management
- app log management
- app instance management
Development
You should know
- Node.js
- Nest web framework
- Kubernetes basic use
- Telepresence for local development
- MongoDb basic use
- MinIO object storage
- APISIX gateway
- nestjs-i18n i18n
Prerequisites
- laf cluster installed locally or remotely (~/.kube/config)
- telepresence installed (see https://www.telepresence.io/reference/install)
- minio client installed (see https://min.io/download#)
Start service locally
cd server/
# Install telepresence traffic manager (only
telepresence helm install
# Connect your computer to laf-dev cluster
telepresence connect
# Connect local server to laf server cluster
telepresence intercept laf-server -n laf-system -p 3000:3000 -e $(pwd)/.env
npm install
npm run watch
Clean up
telepresence leave laf-server-laf-system
Troubleshooting
telepresence helm installfailed forarm64 / Apple Chipcluster, please upgrade your telepresence tov2.11.1or later.