2025-04-09 21:25:31 +00:00
|
|
|
# LikeC4 architecture documentation
|
|
|
|
|
|
|
|
Run `npx likec4 start` to start dev server
|
|
|
|
|
|
|
|
## with docker and how to render/export images
|
|
|
|
|
|
|
|
// how to create/export c4 images:
|
|
|
|
// see also https://likec4.dev/tooling/cli/
|
|
|
|
|
|
|
|
docker run -it --rm --name likec4 --user node -v $PWD:/app node bash
|
|
|
|
npm install likec4
|
|
|
|
exit
|
|
|
|
|
|
|
|
docker commit likec4 likec4
|
|
|
|
docker run -it --rm --user node -v $PWD:/app -p 5173:5173 likec4 bash
|
|
|
|
|
|
|
|
// as root
|
|
|
|
npx playwright install-deps
|
|
|
|
npx playwright install
|
|
|
|
|
|
|
|
npm install likec4
|
|
|
|
|
|
|
|
// render
|
2025-05-06 10:14:10 +00:00
|
|
|
node@e20899c8046f:/app/content/en/docs/project/onboarding$ ./node_modules/.bin/likec4 export png -o ./images .
|
|
|
|
|
|
|
|
## trouble shooting
|
|
|
|
|
|
|
|
when refactoring you might need to restart the languange server, just that it updates its internal model representation
|
|
|
|
In VSCode it is: `ctrl+Shift+P' + 'LikeC4: restart languange server`
|