Skip to content

Commit

Permalink
add doc
Browse files Browse the repository at this point in the history
  • Loading branch information
SimoneDutto committed Dec 12, 2024
1 parent 68934fa commit 4867dfa
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ lint:
check: version/commit.txt version/version.txt lint
go test -timeout 30m $(PROJECT)/... -cover

# generates database schemas locally to inspect them.
generate-schemas:
@./local/jimm/generate_db_schemas.sh

Expand Down
2 changes: 1 addition & 1 deletion local/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,4 +74,4 @@ controllers that will be controlled by JIMM.
- The WS API for JIMM Controller is under: `ws://localhost:17070` (http direct) and `wss://jimm.localhost` for secure.
- You can verify local deployment with: `curl http://localhost:17070/debug/status` and `curl https://jimm.localhost/debug/status`
- Traefik is available on `http://localhost:8089`.
- You can generate db schemas from your running postgres by using `make generate-schemas`
- You can generate db schemas from the running deployment postgres to inspect the raw sql by using `make generate-schemas`.
3 changes: 3 additions & 0 deletions local/jimm/generate_db_schemas.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
#!/bin/bash

# This script generates database schema from our running postgres deployment docker compose.
# Its purpose is to better inspect raw SQL generating our db models.

# Configuration
DB_CONTAINER="postgres"
SCHEMA="public"
Expand Down

0 comments on commit 4867dfa

Please sign in to comment.