update readme
This commit is contained in:
@@ -1,20 +1,28 @@
|
|||||||
Start DB:
|
Start DB:
|
||||||
|
|
||||||
brew services start postgresql@15
|
## 1. brew services start postgresql@15
|
||||||
|
|
||||||
From the backend directory, you have a few options:
|
OR
|
||||||
|
|
||||||
Option 1: Single command (both API + poller)
|
/opt/homebrew/opt/postgresql@15/bin/pg_ctl -D /opt/homebrew/var/postgresql@15 start
|
||||||
cd /Users/kjannette/workspace/koin_ping_0.2.0/backendmake dev-all
|
|
||||||
|
|
||||||
Option 2: Two separate terminals
|
## 2. From the backend directory, you have a few options:
|
||||||
Terminal 1 (API server):
|
|
||||||
cd /Users/kjannette/workspace/koin_ping_0.2.0/backend go run ./cmd/api
|
|
||||||
Terminal 2 (Poller):
|
|
||||||
cd /Users/kjannette/workspace/koin_ping_0.2.0/backend go run ./cmd/poller
|
|
||||||
|
|
||||||
make run — Builds and runs the API server.
|
## 3. Option 1: Single command (both API + poller)
|
||||||
make dev — Runs the API server with auto-reload via air (falls back to go run if air isn't installed).
|
cd /Users/kjannette/workspace/koin_ping_0.2.0/backendmake dev-all
|
||||||
make poller — Builds and runs the poller.
|
|
||||||
make poller-dev — Runs the poller with auto-reload.
|
## 4. Option 2: Two separate terminals
|
||||||
make dev-all — Runs both the API and poller concurrently.
|
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.
|
||||||
Reference in New Issue
Block a user