Skip to content
Permalink
Browse files

readme and dev for lazy developers

  • Loading branch information
niquola committed Sep 7, 2018
1 parent bc02dcf commit 3b138f3258b2d23f3e24c059b0042db21c7e4469
Showing with 41 additions and 0 deletions.
  1. +1 −0 .gitignore
  2. +22 −0 README.md
  3. +5 −0 dev/.env
  4. +13 −0 dev/docker-compose.yaml
@@ -4,3 +4,4 @@ tests/node_modules
vendor
bin
*packr.go
dev/.data
@@ -10,6 +10,28 @@

## Development


For macos:

```
brew install go
brew install dep
# use your local postgres or
cd dev
source .env
docker-compose up -d
cd ..
make
source dev/.env
bin/fhirbase -d fhirbase init
curl https://storage.googleapis.com/aidbox-public/sample-data.gzip > /tmp/data.gzip
bin/fhirbase -d fhirbase load /tmp/data.gzip
```

This project is Makefile-based. At first, you need to install Golang
and [Glide](https://github.com/Masterminds/glide). Then building entire project is as simple as:

@@ -0,0 +1,5 @@
export PGUSER=postgres
export PGPASSWORD=postgres
export PGPORT=5466
export PGHOST=localhost
export PGDATABASE=fhirbase
@@ -0,0 +1,13 @@
version: '2'
services:
db:
image: postgres:10.4
container_name: fhirbase
volumes:
- .data:/var/lib/postgresql/data
ports:
- "${PGPORT}:5432"
environment:
POSTGRES_USER: ${PGUSER}
POSTGRES_PASSWORD: ${PGPASSWORD}
POSTGRES_DB: ${PGDATABASE}

0 comments on commit 3b138f3

Please sign in to comment.
You can’t perform that action at this time.