Skip to content

maitrenem/CaliOpen

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CaliOpen

A sample pre-alpha interface for CaliOpen.

Architecture

The CaliOpen PoC consists of two projects:

  • a Pyramid app
  • an Angular app.

The Pyramid app provides a REST API and serves the Angular app.

Prepare your environment

# Get the code
$ cd ~/workspace
$ git clone https://github.com/CaliOpen/CaliOpen.git

Installation of the Angular app

$ cd ~/workspace/CaliOpen/caliop.ng

# Install dependancies

# This is not mandatory, if you have installed grunt-cli karma bower globally
# inspired by python virtual env to add node_modules bin in path
# use ndeactivate for deactivate it
$ source nactictivate

$ npm install
$ bower install

# Build the app
$ grunt build

You don't have chrome:

if you want to use chromium,

export CHROME_BIN=/usr/bin/chromium

or if you want to use firefox instead of chrome during grunt build, Change the karma continuous browser in the karma configuration section from Grunfile.fs

Known issues:

if you have problem with the ui-router:

Chrome 32.0.1700 (Linux) DashboardCtrl isCurrentUrl should pass a dummy test FAILED
        Error: [$injector:modulerr] Failed to instantiate module caliop due to:
        Error: [$injector:modulerr] Failed to instantiate module ui.router due to:
        Error: [$injector:nomod] Module 'ui.router' is not available! You either misspelled the module name or forgot to load it. If registering a module ensure that you specify the dependencie
s as the second argument.

You can execute:

 cd vendor/
 git clone git@github.com:angular-ui/ui-router.git
 rm -rf angular-ui-router
 mv ui-router angular-ui-router
 cd ..

Installation of the Pyramid app

# Create a virtualenv
$ virtualenv2 ~/.virtualenvs/caliop

# Activate it
$ source ~/.virtualenvs/caliop/bin/activate

# Install dependancies
$ cd ~/workspace/CaliOpen/caliop
$ python setup.py develop

# Copy (and adapt if needed) your ini file
$ cp development.ini.sample development.ini

# Start the app
$ pserve development.ini

# Start a modern browser and go to http://localhost:6543
# Enjoy.

For a production installation

# Compile instead of build
$ cd ~/workspace/CaliOpen/caliop.ng
$ grunt compile

# Copy (and adapt if needed) your production ini file
$ cd ~/workspace/CaliOpen/caliop
$ cp production.ini.sample production.ini

# Start the app
$ pserve production.ini

Building the documentation

# Generate HTML documentation
$ cd ~/workspace/CaliOpen/docs
$ make html

# Serve the files
$ cd _build/html
$ python -m SimpleHTTPServer

# Go to http://localhost:8000

About

Proof of concept

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published