Skip to content

Latest commit

 

History

History
36 lines (25 loc) · 1.72 KB

deploy-or-develop.md

File metadata and controls

36 lines (25 loc) · 1.72 KB
layout title
post
Deploy or develop dms-view

dms-view is a single-page web application that can be run from any web server. To deploy your own instance of the dms-view tool, clone the dms-view repository into a directory name of your choice within your existing web server's publicly available directory structure.

To develop dms-view locally, you can use a lightweight web server such as http-server. You will need to install npm before you can download and install http-server.

For example, our local development for dms-view works like this.

  1. Clone dms-view repository and change into its local directory.
git clone https://github.com/dms-view/dms-view.github.io.git
cd dms-view.github.io
  1. Start your web server on an internal address and port.
http-server -a 127.0.0.1 -p 8000
  1. Navigate to http://127.0.0.1:8000 in your browser.

  2. Modify source code for dms-view as desired and refresh the local version in your browser to see your changes.

Note that dms-view loads data (CSVs, PDB files, the font for logo plots, etc.) by making HTTP requests to publicly available servers. This means that you cannot load local data from your computer unless it is in a directory that is visible to your web server. In the example above, all files from the top-level dms-view repository directory and below will be accessible to your web server.

We welcome contributions to the dms-view code and documentation. Consult our contributing guide for more details.