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
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
Retired in favour of BlueGenes: https://github.com/intermine/bluegenes
A re-frame application designed to function as a UI for InterMine's data warehouse layer.
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.
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
.
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
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).
foreign
clean
cljsbuild once min
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]
If not done already, add your dokku server as a remote:
remote add dokkuserver dokku@example.com:bluegenes
Push the repository:
push dokkuserver master