Development¶
Run all this commands:
lets postgreslets apply-migrations-devlets apply-seeds-devif you have data inseeds/directorylets webin separate terminallets uiin separate terminal, this will start vite dev server
Note
You might need to install npm dependencies: cd ui && npm install
http://localhost:8080 - web application with lets ui
http://localhost:3001 - web application with lets ui-build-dev
http://localhost:8081 - http api
localhost:50051 - grpc api
To create a project for development purposes you can run:
lets http
and then execute this command:
curl -X POST http://localhost:8080/flags/load -H "Content-Type: application/json" \
-d '{"project": "test", "version": 1, "variables": [{"name": "user.id", "type": 2}], "flags": ["TEST_FLAG"], "values": [["TEST_VALUE", 1]]}'
Default username is admin and password is admin if you run with configs/local.yaml configuration file (default)
To start API handlers (not required for web application):
lets httpin separate terminal (this will start http server onhttp://localhost:8080)lets rpcin separate terminal (this will start grpc server onlocalhost:50051)
To build UI and copy it to web/static directory:
lets ui-build-dev
To release package:
lets release 1.0.0 --message="Added feature"
Pre-commit
./scripts/enable-hooks.sh
./scripts/disable-hooks.sh
Architecture¶
Check important architecture decisions in adr/ directory.