Git Product home page Git Product logo

dmemo's Introduction

Dmemo CircleCI Coverage Status

Database description management tool.

Prerequisite

Setup

$ ./bin/setup
$ # Set GOOGLE_CLIENT_ID and GOOGLE_CLIENT_SECRET of your OAuth client credential
$ vi .env
$ ./bin/rails s

Docker

Docker images are published on Docker Hub. https://hub.docker.com/r/hogelog/dmemo/

$ cp .env.production.sample .env.docker
$ # Set all environment variables.
$ # You can generate secret_key_base by the following command:
$ #   `docker run --rm --env-file .env.docker -t hogelog/dmemo ./bin/rake secret`
$ vi .env.docker
$ docker run --rm --env-file .env.docker -t hogelog/dmemo ./bin/docker_db_apply.sh
$ docker-compose up

Execute synchronization

./bin/rails r 'SynchronizeDataSources.run'

or

docker run --rm --env-file .env.docker -t hogelog/dmemo ./bin/rails r 'SynchronizeDataSources.run'

Configure

Create Admin User

  • Login dmemo by google account
  • Activate user as admin
$ ./bin/rake admin:activate [email protected]
 or
$ docker run --env-file .env.docker hogelog/dmemo ./bin/docker_admin_activate.sh [email protected]

Environment Variables

Name Description
GOOGLE_CLIENT_ID (required) Client ID of Google APIs
GOOGLE_CLIENT_SECRET (required) Client secret of Google APIs
GOOGLE_HOSTED_DOMAIN See https://developers.google.com/identity/protocols/OpenIDConnect#hd-param
SECRET_KEY_BASE (required only in production) A secret value generated by ./bin/rake secret
DATABASE_URL (required only in production) URL like postgresql://user:password@hostname/dbname

dmemo's People

Contributors

hogelog avatar ragi256 avatar snowhork avatar aamine avatar abicky avatar dependabot-preview[bot] avatar littlestarling avatar kitsuyui avatar dependabot[bot] avatar eagletmt avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.