/genealogy

Primary LanguageJavaScript

genealogy

Docker Repo https://hub.docker.com/r/tmtxt/genealogy/

Dev

server

Setup

$ cd server
$ yarn install

Run dev server

$ cd server
$ yarn dev-server

client

Setup

$ cd client
$ yarn install

Run dev server

$ cd client
$ yarn start

Build

Use the build.sh script and push.sh script to build and push the docker image

$ ./build.sh $VERSION
$ ./push.sh $VERSION

Deploy

Run docker image neo4j:3.4.7

Run docker image rethinkdb:2.3.6

Run docker image tmtxt/genealogy:latest with these settings

  • Environment variables
    • App settings
      • BACKEND_PORT: web server port
      • ENSURE_DATA_ENABLED: whether to ensure data the app, required for first time
      • LOG_LEVEL: default to info
      • NEO4J_SERVER: neo4j server address
      • NEO4J_PORT: neo4j bolt port
      • NEO4J_USER: default to neo4j
      • NEO4J_PASSWORD: empty if no authentication
      • SECRET_KEY: cookie signed key
      • ENCRYPT_KEY: key for encrypting admin password
      • RETHINKDB_HOST
      • RETHINKDB_PORT
      • RETHINKDB_DB
    • Frontend settings
      • PAGE_TITLE
      • PAGE_HEADLINE
      • CAROUSEL_IMAGE1: image url
      • CAROUSEL_HEADER1
      • CAROUSEL_IMAGE2: image url
      • CAROUSEL_HEADER2
      • CAROUSEL_IMAGE3: image url
      • CAROUSEL_HEADER3
      • CAROUSEL_IMAGE4: image url
      • CAROUSEL_HEADER4
      • CAROUSEL_IMAGE5: image url
      • CAROUSEL_HEADER5
  • Volumes
    • /usr/src/app/pictures: used to store upload pictures

Sample https://github.com/tmtxt/truongtx-ansible/blob/master/genealogy.yml