Coder Social home page Coder Social logo

goldmanm / rmg-website Goto Github PK

View Code? Open in Web Editor NEW

This project forked from reactionmechanismgenerator/rmg-website

0.0 1.0 0.0 2.21 MB

A Django-powered website for Reaction Mechanism Generator (RMG)

Python 26.70% JavaScript 58.51% CSS 0.44% HTML 14.35%

rmg-website's Introduction

RMG Website - A Django-powered website for RMG

Authors: Prof. William H. Green ([email protected]),
Prof. Richard H. West ([email protected]), and the RMG Team ([email protected])

This repository contains the source code that powers the RMG website, which runs at http://rmg.mit.edu/. The RMG website itself uses the Django web framework.

User Setup

If you only wish to use the RMG website, no setup is required! Simply point your favorite web browser to http://rmg.mit.edu/ to get started. Some parts of the web site require that Javascript be enabled.

Developer Setup

The dependencies required to develop the RMG website are:

Django (http://www.djangoproject.com/)
Version 1.3.0 or later is required.
1.5.0 or later is recommended.
RMG-Py (http://github.com/ReactionMechanismGenerator/RMG-Py)
Development of the website closely mirrors that of RMG-Py, and in general you will need to checkout and update the RMG-Py repository whenever you update this repository.
Pydot (http://code.google.com/p/pydot/)
This can be installed via pip install pydot (or easy_install pydot).

Once you have successfully installed the above dependencies, fork and/or clone the git repository to your machine. At this point you will need a few more dependencies:

jQuery (http://jquery.com/)
Version 1.4.0 or later is recommended. For development you probably want the development (uncompressed) version. For a production environment you will want the minified and gzipped version. This file should be placed in the rmgweb/media folder.
jsMath (http://www.math.union.edu/~dpvc/jsMath/)
Version 3.5 or later is recommended. These files should be placed in the rmgweb/media/jsMath folder. You will also need to either download and install the TeX fonts (recommended) or the jsMath image fonts in order to see the formulas properly in your web browser.
Highcharts (http://www.highcharts.com/)
This should live in a rmgweb/media/Highcharts folder.

In order to get the web server running, you must first create a secret key for Django. This key should be placed in the file rmgweb/secretsettings.py. An example of such a file, rmgweb/secretsettings.py.example, is available. The easiest way to generate a secret key is to initialize a dummy Django project and copy its secret key from the settings.py file, or visit a site such as http://www.miniwebtool.com/django-secret-key-generator/. If you are only developing locally, then you can simply move the rmgweb/secretsettings.py.example file to rmgweb/secretsettings.py; however, in production environments you are strongly urged to use a custom key.

Once the secret key is setup, you can start the development server to test the website locally. To do this:

$ cd rmgweb
$ python manage.py syncdb
$ python manage.py runserver

The syncdb command may prompt you to create a superuser account, which you must do in order to develop in portions of the website that require user authentication.

Then navigate in your favorite web browser to http://127.0.0.1:8000/. The website may take some time to load at first, as the RMG database must be loaded from disk every time the web server is restarted.

License

The RMG website codebase is available under the terms of the MIT/X11 license, reproduced below:

Copyright (c) 2011 William H. Green and the RMG Team

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.

rmg-website's People

Contributors

ajalan avatar bbuesser avatar connie avatar goldmanm avatar jabrownmit avatar jwallen avatar mliu49 avatar pierrelb avatar rwest avatar sean-v8 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.