Skip to content

Latest commit

 

History

History
47 lines (35 loc) · 1.22 KB

development.md

File metadata and controls

47 lines (35 loc) · 1.22 KB

Development

Setup

  • Clone the repo
  • Install PostgreSQL (either homebrew or Postgres.app)
  • yarn
  • cd packages/backend && bundle install && rake db:create

Dev servers

# Rails
yarn workspace @coexist/backend dev
# Hapi proxy
yarn workspace @coexist/hapi-proxy dev
# Cloudflare worker
yarn workspace @coexist/cloudflare-worker dev
# Frontend Storybook
yarn workspace @coexist/frontend storybook

Deployment

backend (Rails) and hapi-proxy (Hapi) packages are manually deployed to Heroku as per this guide (free Dynos, please don't DoS me 🙂)

First install Heroku CLI, login, and configure git remotes:

heroku git:remote --remote heroku-remote-rails -a coexist-example-backend-rails
heroku git:remote --remote heroku-remote-hapi -a coexist-example-proxy-hapi

Then to deploy:

# Rails
git subtree push --prefix packages/backend heroku-remote-rails main
# Hapi proxy
git push heroku-remote-hapi main

cloudflare-worker is manually deployed to Cloudflare using Wrangler.

yarn workspace @coexist/cloudflare-worker deploy