Visual Dynamics is a web application made platform for molecular simulations. It aims to automatize the generation and execution of a molecular simulation with capabilities to generate and run dynamics of Protein and Protein + Ligand (prepared in ACPYPE or PRODRG).
If you want to self-host Visual Dynamics just stick to the steps below (this only works on Linux):
- Make sure to have nodejs, yarn, docker , docker compose and the docker plugin nfsvol.
- Copy the file
.env.example
to.env
and fill it. The ones you need to change are:VISUALDYNAMICS_URL
(for this tutorial we'll assume this is set tovisualdynamics.localhost
),DB_USER
,DB_PASS
andDB_DATABASE
,NEXTAUTH_SECRET
,SMTP_USER
,SMTP_HOST
,SMTP_PASS
andSMTP_PORT
- Run
docker compose -f docker-compose.prod.yml up -d --build
- Enter the folder
client
and runyarn install
. - Run
DATABASE_URL=postgres:https://DB_USER:DB_PASS@localhost:5432/DB_DATABASE yarn prisma migrate deploy
. Note theDB_
fields that must be the ones you set on.env
- Run
DATABASE_URL=postgres:https://DB_USER:DB_PASS@localhost:5432/DB_DATABASE yarn prisma db seed
. Note theDB_
fields that must be the ones you set on.env
- Now you can open a browser and access
visualdynamics.localhost
.
Note: This tutorial will make Visual Dynamics available on only ONE machine.
Note: If you plan to run Visual Dynamics to your whole institution, please coordinate with your IT Sector to address the intricacies of your institution infrastructure.
The Visual Dynamics source code is available under the MIT License. Some of the dependencies are licensed differently, so watch out for them.