Code Monkey home page Code Monkey logo

caliopen's Introduction

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 [email protected]: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

caliopen's People

Contributors

axelsimon avatar cr0ck avatar gdchamal avatar mardiros avatar z8po 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.