Champaign
Champaign is a digital campaigning platform built by SumOfUs. It is now production ready and we are in the process of migrating all our campaigning operations from ActionSweet to Champaign. If you're interested in collaborating on the project with us, or have ideas or recommendations, please get in touch!
Installation
- Install Docker - for detailed instructions, go here.
- If you're using OS X, install Docker and Boot2Docker together via homebrew:
brew install boot2docker
- If you're using a Linux system, you can install Docker natively via:
sudo apt-get install docker
or similar for RH-based systems.
- to check if you already have it, you can type
VBoxManage
at the command line.
-
Clone the project to your local system using git
-
Set up the docker VM
- run
boot2docker init
thenboot2docker up
. Add the bash variables output byboot2docker up
to your~/.bash_profile
or~/.bash_rc
and reload the terminal. - create a file to hold the web enviroment by running
touch .env.web
.
- Setup and start Rails
docker-compose build
This will take a few minutes to download the relevant containers and install ruby gems.- Copy
secrets.yml
to theconfig
directory. - Run
cp config/env.yml.template config/env.yml
. - Update
env.yml
with valid keys. - Create the database by issuing
docker-compose run web rake db:create
and load the tables by issuingdocker-compose run web rake db:schema:load
- Seed db with liquid templates:
docker-compose run web rake champaign:seed_liquid
docker-compose up
This will start the application running in the docker container.
- Check that it's running
- If you are on Linux, you can check that the application is running by visiting localhost with the specified port (at this time,
http://localhost:3000
). - If you are on OS X, you will need to retrieve the IP of your Docker vm by running
boot2docker ip
on the command line. (On most machines, this seems to be192.168.59.103
). - On OS X, visit
http://boot2docker_ip:port
(or the equivalent result ofboot2docker ip
with port 3000) in your browser to see the application running.
- Run the tests
docker-compose run web rspec spec
QA
Cross browser QA of member-facing pages has been done with the whiz-bang tech from Browserstack.