huboard/huboard-cache

Name: huboard-cache

Owner: HuBoard

Description: Proxy between HuBoard and APIs

Created: 2016-04-23 15:16:57.0

Updated: 2016-05-18 21:49:32.0

Pushed: 2018-03-05 11:14:58.0

Homepage: null

Size: 53

Language: F#

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

How to build

You need mono brew install mono

I'm using VSCode + Ionide

install -g foreman

You will need a postgres database. By default the app looks for its connection string in the environment variable DATABASE_URL.

API

~/cache/<owner>/<repo>/issues/<issueid> - gets and caches (forever) a github issue

Scripts
Set Up Database

In ~/migrations/up are a set of SQL files you can run to construct the database

You will need to run them as admin. they create the user and database.

or

Run them as 'postgres' user:

./build.sh migrations

Compile Code

./build.sh

Run Tests

./build.sh test

Run App

./run.sh

or

foreman start - if ruby based

or

nf start - if node based

or

docker run -t -p 5000:5000 cache (cache is what i named my docker image)

Syntax note: in the -p <host machine port>:<container port>

or

./run.sh docker

Build Docker Image
Setup Docker with Docker Beta

Install the Docker Beta

or

with Docker Toolbox

Install the Docker Toolbox

Build the docker image

./build.sh docker

Docker Compose

There is also a Docker compose file (docker-compose.yml) that can be used to spin up the postgres database for getting the full hosted experience.

docker-compose build

docker-compose up

Ports

http://localhost:5000 for the website

postgresql://localhost:5433/hucache for the postgres instance (Connect with username huboard and password huboard)


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.