intermine/bluegenes-old

Name: bluegenes-old

Owner: InterMine

Description: Retired. Visit BlueGenes instead

Created: 2016-01-12 14:58:29.0

Updated: 2017-05-19 15:46:27.0

Pushed: 2017-05-19 15:59:37.0

Homepage: https://github.com/intermine/bluegenes

Size: 803

Language: Clojure

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

Retired in favour of BlueGenes: https://github.com/intermine/bluegenes

bluegenes

A re-frame application designed to function as a UI for InterMine's data warehouse layer.

Development Mode
Environment Variables

A few environment variables are needed at runtime. Do not check these into your source code.

| Environment Variable | Purpose | |———————— |——————————————————————————————————————————————————— | | `MONGO_URL| A MongoDB URI for storing data. Ex: ``mongodb://localhost:27017/intermine` | |GOOGLE-CLIENT-ID`` | A Google Client ID that is used to authenticate users. A Google Project is required which can be configured at (https://console.developers.google.com/). Creating a Google Developers Console project and client ID walks you through the steps needed to get an ID. |

When running locally, consider creating a `~/.lein/profiles.clj` file with the following values:

er
nv
mongo-url "mongodb://localhost:27017/monger-test"
google-client-id "37046834670348634608364.googleid"}}}

These values will be automatically applied as environment variables to the project at runtime.

Run application:
 foreign
 clean
r install
 figwheel dev

Figwheel will automatically push cljs changes to the browser.

Wait a bit, then browse to http://localhost:3449.

If you wish to use a repl from your terminal, consider installing rlwrap for a more user-friendly experience with arrow keys that work rather than generating ASCII codes, and run rlwrap lein figwheel dev rather than just lein figwheel dev.

Compile Less to CSS:

Currently this isn't built into the lein / figwheel lifecycle and needs to be done manually (this may change!).

Assuming you have Less and Less clean CSS plugin installed globally, from the root directory run:

essc --clean-css src/less/style.less resources/public/css/style.css
Run tests:
 clean
 doo phantom test once

The above command assumes that you have phantomjs installed. However, please note that doo can be configured to run cljs.test in many other JS environments (chrome, ie, safari, opera, slimer, node, rhino, or nashorn).

Production Build
 foreign
 clean
 cljsbuild once min
Docker

To build an image locally:

er build -t bluegenes:[version tag]

To run a container from the image

er run -it --rm -p 8080:5000 --name bluegenes-server bluegenes:[version tag]
Deploy to Dokku

If not done already, add your dokku server as a remote:

remote add dokkuserver dokku@example.com:bluegenes

Push the repository:

push dokkuserver master

This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.