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 port3331
,verify
at port3332
, andqa
at port3333
) - 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:
- Go into Adminer on port 8888, and click on
db
in the breadcrumb. - Click Refresh next to Database in the database table and delete all unwanted databases.
- Look at Process list and kill unwanted processes.
- Go into RStudio on port 8787 and restart
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.