Primarily a tool to update data used by the mongts application.
You can install the released version of imongr from GitHub with:
remotes::install_github("mong/imongr")
The easiest way to develop imongr
is to fire up the docker-compose.yml
file:
docker-compose up
This file consist of seven different services:
- three mariadb databases (prod
at port 3331
, verify
at port 3332
, and qa
at port 3333
)
- Adminer, a tool for database management, at port 8888
- RStudio at port 8787
- Code-server (vscode) at port 8080
- The app, based on the hnskde/imongr:latest
image, at port 3838
Open localhost:8787 with your favorite browser and login with rstudio
and password
. Go into the imongr
folder, open imongr.Rproj
, and press Yes to Do you want to open the project ~/imongr?. Start coding. If you prefer vscode, you can open localhost:8080 instead.
Populate the databases by using Adminer, either through imongr
(Administrative verktøy - Adminer) or through port 8888 (the password is the same as username/db/repository name).
The data can be visualized by using the mongts
app:
export DB_PORT=3331 # or 3332 for the verify database
yarn install && yarn dev # inside the mongts folder
The data can then be seen at localhost:3000/kvalitetsregistre/alle/sykehus/
R CMD build .
docker build -t hnskde/imongr:latest .
docker compose up
Navigate a browser to localhost:3838/.
If the environment variables have been changed an you want to change them back to default:
readRenviron("~/.Renviron")
If your pool have not been closed properly, for instance if you have not cleaned up after testing with database:
db
in the breadcrumb.R
(Ctrl-Shift-F10). Please note that the 'imongr' project is released with a Contributor Code of Conduct. By contributing to this project, you agree to abide by its terms.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.