v1.0.0: dev: add dev and test conseil

Signed-off-by: GnomeZworc <nicolas.boufidjeline@g3e.fr>
This commit is contained in:
GnomeZworc 2024-03-15 18:08:25 +01:00
commit df7a17cf9d
Signed by: nicolas.boufideline
GPG key ID: 4406BBBF8845D632
2 changed files with 12 additions and 0 deletions

View file

@ -41,9 +41,14 @@ services:
ports:
- 127.0.0.1:2300:1222
volumes:
- .:/app:ro
- ./docker/keys:/keys
depends_on:
postgres:
condition: service_healthy
ENDFILE
cat config/db.sql| docker compose exec -T postgres psql -U acc accounts
curl -s http://127.0.0.1:2300/ -H "Content-Type: application/json" -d "{\"username\":\"root@root.fr\",\"password\":\"root\"}" | jq -r '.token'
```