Skip to content
/ beast_mode Public template

100% server-side rendered faceted search UI demo. Featuring StimulusReflex and All Futures.

Notifications You must be signed in to change notification settings

leastbad/beast_mode

Repository files navigation

Beast Mode StimulusReflex

A server-side rendered faceted search UI demo featuring StimulusReflex and AllFutures.

Installation

  1. bundle install
  2. yarn install
  3. bin/setup

Make sure that if you don't run bin/setup that you run rake db:seed manually.

Dependencies

Make sure that your Postgres and Redis settings are configured via the REDIS_URL environment variable.

Docker

You can also run the entire application and its dependencies with Docker.

git clone https://github.com/leastbad/beast_mode.git
cd beast_mode
bin/docker/up

NOTE: You may need to run bin/docker/up more than once on initial boot

Docker binstubs

  • bin/docker/up - starts the entire containerized environment

  • bin/docker/down - stops all services and removes containers, networks, volumes, and images

  • bin/docker/start - starts stopped containers

    bin/docker/start
    bin/docker/start web
    bin/docker/start webpack
  • bin/docker/stop - stops containers without removing them

    bin/docker/stop
    bin/docker/stop web
    bin/docker/stop webpack
  • bin/docker/restart - restarts containers

    bin/docker/restart
    bin/docker/restart web
    bin/docker/restart webpack
  • bin/docker/attach - attach to container, useful for debugging with pry and byebug

    bin/docker/attach web
    bin/docker/attach webpack
    <CTRL-P><CTRL-Q>
  • bin/docker/exec - executes a command inside the shell container

    bin/docker/exec bash
  • bin/docker/tail - tail logs in a container

    bin/docker/tail web
    bin/docker/tail webpack
  • bin/docker/rails - executes a rails command inside the shell container

    bin/docker/rails c
    bin/docker/rails db:migrate

Debugging with Docker

  1. Add a breakpoint to the project

    binding.pry
  2. Attach to the appropriate container to debug

    bin/docker/attach web
  3. Detach from the container when finished

    <CTRL-P><CTRL-Q>