Coder Social home page Coder Social logo

encoded's Introduction

ENCODE Metadata Database

Build status

Note: the default Mac python doesn't seem to work. You might want to install Python with Homebrew and you may need to install one of more of (using homebrew): libxml2 libxslt freetype openssl libjpeg.

First run buildout:

$ python2.7 bootstrap.py
$ bin/buildout

To start the application:

$ bin/pserve development.ini

Browse to the interface at http://localhost:6543/.

Run the Jasmine tests at http://localhost:6543/tests/js/test_runner.html.

Run the Pyramid tests with:

$ bin/test -k -bdd

Run the Browser tests with:

$ bin/test -k bdd -v -v
To run tests with sqllite (default) use:
$ bin/test --engine-url sqlite://
To run tests with postgresql::

first install postgres (on a mac with homebrew for example)

If you wish a clean db wipe for DEVELOPMENT $ dropdb encoded ... $ createdb encoded $ pg_ctl -D postgres -l pg.log start $ bin/test --engine-url postgresql:///encoded

To start development data server (NO PERMISSIONS) use:
$bin/pserve development.ini
To start development data server (AuthZ enabled) use:
(requires ../master_encode3_interface_submissions.xlsx) $bin/pserve dev-master.ini
To start productiondata server (Postgres, AuthZ, all data) use:

(requires ../master_encode3_interface_submissions.xlsx and/or existing PG DB) $bin/pserve production.ini

$bin/pserve --help for more pyramid options --log-file [filename] is a useful argument

Database setup on VMs:

# service postgresql-9.2 initdb
# service postgresql-9.2 start
# sudo -u postgres createuser --createdb encoded

Then as the encoded user:

$ createdb encoded

Notes on SASS/Compass

SASS and Compass are being used. Before running to app, you need to builld the css files by starting 'compass watch' or doing a 'compass compile' (see below).

Installing

Both can be installed via Ruby gems:

$ gem install sass
$ gem install compass

Compiling "on the fly"

Compass can watch for any changes made to .scss files and instantly compile them to .css. To start this, from the root of the project (where config.rb is) do:

$ compass watch

You can specify whether the compiled CSS is minified or not in config.rb. (Currently, it is set to minify.)

Force compiling

$ compass compile

Again, you can specify whether the compiled CSS is minified or not in config.rb.

Also see the Compass Command Line Documentation and the Configuration Reference.

And of course:

$ compass help

encoded's People

Contributors

lrowe avatar nikhilrp avatar

Watchers

 avatar  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.