This repository allows deploying our IR teaching app which is a combination of our web service and a frontend developed in the visualizer library.
You need to specify the port you want to use for frontend and the REST-API backend using the IR_NGINX_PORT
environment variable.
If you want to directly expose via HTTP, you can set the IR_NGINX_PORT
to 80
, for HTTPS you need to add SSL certificates (which you can get, for example, from letsencrypt) and use port 443
.
Most conveniently, first clone the repo
git clone https://github.com/cheminfo-py/ir-teaching-app
Then start the docker-compose.
docker-compose up --build -d
- You may need to check that you have the correct permissions to read and write the mounted folders. This can be an issue on security enhanced Linux
To update the dependencies (which is normally not needed), run bash update_visualizer.sh
from the root level of this repository.
If you find some issues in the installation this is the first thing to fix.
The ngnix configuration has the following features:
- it proxies the requests to
lib
,github
, anddocs
to the corresponding routes onlactame
- it caches requests
However, it uses a local version of the visualizer.
To edit the view.json
(e.g., to add new collections of molecules) you can use my.cheminfo.org.
There with right click you have the paste view/copy view options. If you use a custom view.json
you need to have it in the root of the argument and provide view.json
as argument
bash update_visualizer.sh view.json
If you think you have an interesting series for the public deployment. Contact us.