File tree Expand file tree Collapse file tree 1 file changed +20
-2
lines changed
Expand file tree Collapse file tree 1 file changed +20
-2
lines changed Original file line number Diff line number Diff line change @@ -10,13 +10,31 @@ git clone
[email protected] :xome/PenAndPaperDmHelperBackendSpringPostgres.git
1010cd 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
1826Run Docker Compose:
1927``` shell
2028docker-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+
You can’t perform that action at this time.
0 commit comments