Skip to content
This repository has been archived by the owner on May 28, 2024. It is now read-only.

Commit

Permalink
Merge pull request #398 from findy-network/add-new-scripts
Browse files Browse the repository at this point in the history
new admin play helpers & fullstack/README update
  • Loading branch information
lainio committed May 21, 2024
2 parents 5221d51 + be3b261 commit 9b14fee
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 0 deletions.
7 changes: 7 additions & 0 deletions scripts/fullstack/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,13 @@ even though it is possible to set one up using a common indy-plenum ledger.
anymore, `make clean` will remove all the generated data and allocated
resources.

**UPDATE:** because of PostgreSQL and docker-compose problems in macOS the
default `docker-compose.yml` file handles SQL db files as transient. To make
them persistent, *remove* following line from the compose file:
```shell
PGDATA: /var/lib/pg_data # <- remove me to keep vault files persistent
```

1. Build playground environment with CLI tool. It's usually
good idea to have some test data at the backend before UI development or
application logic itself. Now, when your whole stack is running thanks to
Expand Down
4 changes: 4 additions & 0 deletions scripts/fullstack/admin/exp-token
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/bash

echo "Token's current expiration timestamp:"
date -d @`./info-token | jq '.exp' | tail -1`
3 changes: 3 additions & 0 deletions scripts/fullstack/admin/info-token
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/bash

cut -d"." -f1,2 <<< $FCLI_JWT | sed 's/\./\n/g' | base64 --decode 2> /dev/null

0 comments on commit 9b14fee

Please sign in to comment.