MolView first generation
JavaScript PHP CSS Other
Latest commit 51fbcd6 Nov 1, 2016 @hermanbergwerf hermanbergwerf committed on GitHub Merge pull request #18 from frankvanrest/patch-1
Fixes typo in DOM

MolView first generation

This repository holds the code of the old, first generation, MolView. You can still run it on your own server.


MolView (
Copyright (c) 2014, 2015 Herman Bergwerf

MolView is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

MolView is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
GNU Affero General Public License for more details.

You should have received a copy of the GNU Affero General Public License
along with MolView.  If not, see <>.

See for more details about third party code.



  1. Copy all files to a server with support for: PHP5, php5-curl, .htaccess and mod_rewrite
  2. Configure $directory in php/utility.php to point to the MolView root directory
  3. Configure ErrorDocument in .htaccess to point to page.php
  4. Make sure the Inkscape and the ImageMagick CLI are installed
  5. Install npm and install local npm modules
  6. Run the build script (use ./ fetch jmol for a clean build)
    • Only run bower and grunt, and render images: ./
    • Also fetch external PHP sources: ./ fetch
    • Also fetch Jmol from sourceforge: ./ fetch jmol
    • Also fetch Jmol from ./ fetch jmol nightly
    • Only render images: ./ render