Skip to content

draftappio/api

Repository files navigation

Build Status Docker Repository on Quay

Draft Logo

Draft Agnostic Rails API

The agnostic Rails API that powers the Draft Chrome extension, Angular web and mobile applications.

Local Installation

  1. Clone the repo
  2. Start MongoDB daemon
  3. Start Redis server
  4. Create your config/secrets.yml config file
  5. Start the Rails server via rails server or rails s

Puma

To install Puma:

gem install puma -v '3.6.0' -- --with-opt-dir=/usr/local/opt/openssl

Secrets.yml

You Should create a file under config directory for your application secrets. It should conform to the following style:

development: &development
  secret_key_base: token

production:
  secret_key_base: token

test:
  <<: *development

github_client_id: token
github_client_secret: token