Skip to content

Commit c81f6b0

Browse files
committed
Add help for Windows Powershell and curl statements to test api
1 parent 367a389 commit c81f6b0

File tree

1 file changed

+20
-2
lines changed

1 file changed

+20
-2
lines changed

README.md

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,31 @@ git clone [email protected]:xome/PenAndPaperDmHelperBackendSpringPostgres.git
1010
cd PenAndPaperDmHelperBackendSpringPostgres
1111
```
1212

13-
Define local directory for database files:
13+
Define local directory for database files and password for connection:
14+
15+
Unix:
1416
```shell
15-
echo "PATH_TO_DB=/path/to/persist/postgres/data" > .env
17+
printf "PATH_TO_DB=/path/to/persist/postgres/data\n" > .env
18+
printf "DB_PASSWORD=changeit\n" >> .env
19+
```
20+
21+
Windows Powershell:
22+
```shell
23+
echo "PATH_TO_DB=//drive/path/to/persist/postgres/data`nDB_PASSWORD=changeit`n" > .env
1624
```
1725

1826
Run Docker Compose:
1927
```shell
2028
docker-compose up
2129
```
2230

31+
Try to create an Adventure with curl:
32+
```shell
33+
curl -X PUT localhost:8080/adventure/Testadventure
34+
```
35+
36+
See if the Adventure was saved:
37+
```shell
38+
curl localhost:8080/adventures
39+
```
40+

0 commit comments

Comments
 (0)