Skip to content

fernandowski/league-management

Repository files navigation

League Management

Nx monorepo with:

  • apps/api: Go backend
  • apps/mobile: frontend app, exposed in Nx as the web project

Local Development

1. Install dependencies

npm install

2. Start Postgres

docker compose up -d db

3. Run database migrations

npm run api:migrate:up
NX_DAEMON=false npx nx run api:migrate

These 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.

4. Start the backend

NX_DAEMON=false npx nx serve api

Backend runs on http://localhost:8080. This command now starts the backend inside the Docker Compose app container.

5. Start the frontend for browser development

NX_DAEMON=false npx nx serve web

Frontend runs on http://localhost:8081.

Useful Commands

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

Notes

  • Use NX_DAEMON=false if Nx daemon issues appear locally.
  • apps/mobile is an Expo Router app. In Nx it is now managed as the web project.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages