Files
koin_ping_0.2.0/backend
KS Jannette b0572451d3 but
2026-03-28 11:55:51 -04:00
..
but
2026-03-28 11:55:51 -04:00
2026-03-10 17:18:54 -04:00
but
2026-03-28 11:55:51 -04:00
but
2026-03-28 11:55:51 -04:00
2026-03-28 11:10:25 -04:00
but
2026-03-28 11:55:51 -04:00
2026-03-28 10:31:14 -04:00

Backend startup quickstarat:

1. brew services start postgresql@15

      OR 

    /opt/homebrew/opt/postgresql@15/bin/pg_ctl -D /opt/homebrew/var/postgresql@15 start

2. From the backend directory, you have a few options:

3. Option 1: Single command (both API + poller)

   cd /Users/kjannette/workspace/koin_ping_0.2.0/backendmake dev-all

4. Option 2: Two separate terminals

    Terminal 1 (API server):
    cd /Users/kjannette/workspace/koin_ping_0.2.0/backend go run ./cmd/api
    
    make run — Builds and runs the API server.
    make dev — Runs the API server with auto-reload via air (falls back to go run if air isn't installed).

5. Terminal 2 (Poller):

    cd /Users/kjannette/workspace/koin_ping_0.2.0/backend 
    go run ./cmd/poller

    make poller — Builds and runs the poller.
    make poller-dev — Runs the poller with auto-reload.

6. ALLIN ONE:

    Make dev-all — Runs both the API and poller concurrently.