-
Notifications
You must be signed in to change notification settings - Fork 24
/
Copy pathREADME.Rmd
50 lines (36 loc) · 1.19 KB
/
README.Rmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
---
output: github_document
---
<!-- README.md is generated from README.Rmd. Please edit that file -->
```{r, include = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
eval = FALSE,
comment = "#>",
fig.path = "man/figures/README-",
out.width = "100%"
)
```
# hexmake
Golem app available at https://connect.thinkr.fr/hexmake/
## Use it with a mongo db
If you want to use a mongo db as a backend to store hexes, you can plug it with a docker image.
``` bash
docker run -v /mongo/data/db:/data/db -v /mongo/data/dump:/dump -p 12334:27017 -d --name mongohexmake -e MONGO_INITDB_ROOT_USERNAME=myuser -e MONGO_INITDB_ROOT_PASSWORD=mypassword mongo:3.4
```
Then set a series of env variables with the infos (or use the one from your prod env).
```{r}
Sys.setenv("MONGOPORT" = 12334)
Sys.setenv("MONGOURL" = "127.0.0.1")
Sys.setenv("MONGODB" = "hex")
Sys.setenv("MONGOCOLLECTION" = "make")
Sys.setenv("MONGOUSER" = "myuser")
Sys.setenv("MONGOPASS" = "mypassword")
```
And run
```{r}
hexmake::run_app(with_mongo = TRUE)
```
Please note that the 'hexmake' project is released with a
[Contributor Code of Conduct](CODE_OF_CONDUCT.md).
By contributing to this project, you agree to abide by its terms.