Skip to content

Commit 1242e0a

Browse files
committed
Add database setup information
1 parent 2b0baaa commit 1242e0a

1 file changed

Lines changed: 19 additions & 0 deletions

File tree

readme.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,25 @@ docker pull mcr.microsoft.com/dotnet/sdk:10.0
1414
docker run -v "$(pwd)":/work -w /work -it -p 5000:80 mcr.microsoft.com/dotnet/sdk:10.0 bash
1515
```
1616

17+
## Database
18+
```
19+
# in terminal:
20+
docker volume create rethinkdb_data
21+
docker run --rm -it --name rethinkdb-manual -v rethinkdb_data:/data -p 8080:8080 -p 28015:28015 -p 29015:29015 rethinkdb
22+
23+
# in browser:
24+
http://localhost:8080
25+
26+
# go to Data Explorer and run:
27+
r.dbCreate("live")
28+
29+
r.db("rethinkdb").table("users").insert({id: "openrct2-api-live", password: "<PASSWORD>"}, { conflict: "replace" })
30+
31+
r.grant("openrct2-api-live", {"config": true})
32+
33+
# remember to replace <PASSWORD> with a strong password and update api.config.yml accordingly
34+
```
35+
1736
## Building / Launching
1837
```
1938
cd src/OpenRCT2.API

0 commit comments

Comments
 (0)