[] (https://travis-ci.org/acessoajustica/acessoajustica) [] (https://coveralls.io/r/acessoajustica/acessoajustica?branch=dev) [] (https://gemnasium.com/acessoajustica/acessoajustica) [] (https://codeclimate.com/github/acessoajustica/acessoajustica) [] (https://scrutinizer-ci.com/g/acessoajustica/acessoajustica) [] (https://github.com/acessoajustica/acessoajustica/blob/master/LICENSE)
[] (http://waffle.io/acessoajustica/acessoajustica) [] (http://waffle.io/acessoajustica/acessoajustica) [![In Progress](https://badge.waffle.io/acessoajustica/acessoajustica.svg?title=In Progress)] (http://waffle.io/acessoajustica/acessoajustica) [] (http://waffle.io/acessoajustica/acessoajustica) [] (http://waffle.io/acessoajustica/acessoajustica)
This repository contains a ruby on rails project for the Legal Department XI de Agosto. The project started in the eXtreme Programming course of 2015, of the University of São Paulo.
We use Docker and Compose, but still haven't hosted a Docker image at DockerHub. To get your dev environment up and running, simply follow the instructions to install Docker and Compose for your operating system. Then get sure that the Docker daemon is running and finally, run:
git clone https://github.com/acessoajustica/acessoajustica.git
./script/alfredo all
This will build the containers, create and seed the database, run the migration and then starts the server
If docker fails to download images or the ruby bundler fail due to problems in the internet connection, you'll have to restart the docker daemon. Run:
sudo service docker restart
Or:
sudo systemctl restart docker.service
The alfredo
script provides the following functionalities:
# Builds images and containers.
./script/alfredo build
# Runs bundle update.
./script/alfredo update
# Stops and removes all containers.
./script/alfredo clean
# Runs the app on the latest container
./script/alfredo run
# Runs the migrations.
./script/alfredo migrate
# Runs unit tests.
./script/alfredo rspec
# Runs acceptance tests.
./script/alfredo cucumber
Before run any test, set the test enviroment up to set up test enviroment, run:
RAILS_ENV=TEST ./script/alfredo create
RAILS_ENV=TEST ./script/alfredo seed
RAILS_ENV=TEST ./script/alfredo migrate
For more information, run the help option:
./script/alfredo help
The app runs at localhost:3000
.
Refer to https://docs.docker.com/compose/rails/.