git clone git@github.com:codeforamerica/ohana-web-search.git && cd ohana-web-search
-
Download, install, and launch Docker
-
Copy the sample configuration files:
$ bin/setup --docker
-
Build/download the container images:
$ docker-compose build
-
Start the app:
$ docker-compose up
Once the docker images are up and running, the app will be accessible at http://localhost:3000.
More useful Docker commands:
- Stop this running container:
docker-compose stop
- Stop and delete the containers:
docker-compose down
- Open a shell in the web container:
docker-compose run --rm web bash
Before you can run Ohana Web Search, you'll need to have the following software packages installed on your computer: Git, Ruby 2.3+, RVM, and PhantomJS. If you're on a Linux machine, you'll also need Node.js.
If you already have all of the prerequisites installed, you can skip to the next step. Otherwise, there are two ways you can install the tools:
-
If you're on a Mac, the easiest way to install all the tools is to use @monfresh's laptop script.
-
Install everything manually: Build tools, Ruby with RVM, phantomjs, and Node.js (Linux only).
bin/setup
Start the app locally on port 4000:
puma -p 4000
Ohana Web Search should now be running at http://localhost:4000
The -p
option allows you to specify which port you want to run the server on. This is useful when running other apps at the same time.
Once you have the app up and running, you will want to customize it to point to your own instance of Ohana API, add your own branding, and much more.