Code Monkey home page Code Monkey logo

LabXP 2015: Acesso à Justiça

[Build Status] (https://travis-ci.org/acessoajustica/acessoajustica) [Coverage Status] (https://coveralls.io/r/acessoajustica/acessoajustica?branch=dev) [Dependency Status] (https://gemnasium.com/acessoajustica/acessoajustica) [Code Climate] (https://codeclimate.com/github/acessoajustica/acessoajustica) [Scrutinizer] (https://scrutinizer-ci.com/g/acessoajustica/acessoajustica) [License] (https://github.com/acessoajustica/acessoajustica/blob/master/LICENSE)

[Backlog] (http://waffle.io/acessoajustica/acessoajustica) [Ready] (http://waffle.io/acessoajustica/acessoajustica) [![In Progress](https://badge.waffle.io/acessoajustica/acessoajustica.svg?title=In Progress)] (http://waffle.io/acessoajustica/acessoajustica) [Testing] (http://waffle.io/acessoajustica/acessoajustica) [Done] (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.

Dependencies

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

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.

Troubleshooting

Refer to https://docs.docker.com/compose/rails/.

acessoajustica's Projects

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.