CoolProp Online#
The online version of CoolProp is stored at CoolProp/CoolProp-Online. It is an application for web2py. It is deployed to PythonAnywhere, and served from there. To get it working:
Getting going on PythonAnywhere#
In PythonAnywhere, add a new web app, select your username
Make sure that you can get to https://YOURUSERNAME.pythonanywhere.com and you don’t get an error (ok, good, web2py is running). Your admin page is https://ibell.pythonanywhere.com/admin/default/index
Open a shell in
/home/YOURUSERNAME/web2py/applicationsgit clone https://github.com/CoolProp/CoolProp-Online coolpropgitto check out the applicationReset the web application in Web tab in PythonAnywhere, go to admin webpage (https://YOURUSERNAME.pythonanywhere.com/admin/default/index), make sure you can see
coolpropgitapplicationDeposit a file called
routes.pyin/home/YOURUSERNAME/web2pywith the contents:routers = dict( BASE = dict( default_application='coolpropgit', ) )
Restart the webservice
Page should serve properly, and redirect to the appropriate page
Running application locally#
Warning
Make sure you install mpld3!
Same basic protocol…
Check out the source of web2py (http://www.web2py.com/init/default/download)
Open shell in unzipped web2py folder
cd applicationsgit clone https://github.com/CoolProp/CoolProp-Online coolpropgitto check out the applicationcd ..python web2py.py
Useful information#
How to update web2py safely: https://www.pythonanywhere.com/forums/topic/881/#id_post_6624
Info on deploying on PythonAnywhere: http://web2py.com/books/default/chapter/29/13#Deploying-on-PythonAnywhere
Setting default app: http://www.ridgesolutions.ie/index.php/2013/02/20/web2py-make-your-app-the-default-web-application/