Nx monorepo with:
apps/api: Go backendapps/mobile: frontend app, exposed in Nx as thewebproject
npm installdocker compose up -d dbnpm run api:migrate:up
NX_DAEMON=false npx nx run api:migrateThese commands run migrations in Docker via docker compose run migrate.
nx serve api and nx run api:dev start the API container, but they do not run migrations automatically.
The Go backend now lives fully under apps/api, including go.mod, internal/, migrations/, Docker/Compose files, and Air config.
NX_DAEMON=false npx nx serve apiBackend runs on http://localhost:8080.
This command now starts the backend inside the Docker Compose app container.
NX_DAEMON=false npx nx serve webFrontend runs on http://localhost:8081.
NX_DAEMON=false npx nx test api
NX_DAEMON=false npx nx test web
NX_DAEMON=false npx nx run web:lint
NX_DAEMON=false npx nx build web- Use
NX_DAEMON=falseif Nx daemon issues appear locally. apps/mobileis an Expo Router app. In Nx it is now managed as thewebproject.