- Make sure you installed node, you can use fnm or nvm
- Make sure you installed pnpm
- Make sure you installed nx globally
- Make sure you installed docker (you can install docker desktop or just docker engine)
- Create env file
apps/bublik/.env.local
(seeapps/bublik/.env.local.example
for reference)
node -v
used node version in file.nvmrc
pnpm -v
nx --version
docker version
You can run UI the following way:
- Create env file
apps/bublik/.env.local
(seeapps/bublik/.env.local.example
for reference) - Build image
pnpm run docker:build
ORdocker build -f apps/bublik/Dockerfile.dev . -t bublik-ui
- Run image
pnpm run docker:start
ORdocker run -it --rm -p 4200:4200 -v $(pwd):/app -v /app/node_modules --env-file apps/bublik/.env.local bublik-ui
Caveats:
- Add flag --network host to run image command if django is served from host
- If you add new dependencies to package.json you need to rebuild image