Decide is an application to help groups and teams take decisions over issues.
First clone the repository
git clone [email protected]:rails-projects-br/decide.git
git clone https://github.com/rails-projects-br/decide.git
To run the application with Docker your should have installed:
- Docker
- Docker-compose
Instructions on how to install Docker on your machine https://www.docker.com/products/docker
Remember that Docker for Windows only works on Windows 10 Professional or Enterprise 64-bit edition. For other Windows versions, you should install Docker-toolbox https://www.docker.com/products/docker-toolbox
For Mac and Windows users Docker-compose is already installed when Docker or Docker-toolbox is installed.
For Linux users, Docker-compose should be installed. Follow this instructions: https://github.com/docker/compose/releases
This should only be needed to run once:
cd decide
docker-compose build
This will download and install all application dependencies into a Docker container. It might take a while, but this will only happen once.
Everytime you need to start your application, use this command.
docker-compose up
The first time you run your application, you will need to create your database.
In another terminal run:
docker-compose run web rake db:create
The first time you run the application, and any time you create a model or a migration, you should run the migrations rake task.
docker-compose run web rake db:migrate
Open http://localhost:3000 on your web browser.
To run the application without Docker, you should have the following dependencies installed.
This application runs on
- Ruby 2.3.x
- Rails 5.0.1
- PostgreSQL
cd decide
bundle install
First configure your config/database.yml
with your PotgreSQL user and credentials.
Make sure your PostgreSQL service is running. Then run:
rake db:create
rake db:migrate
rails s
Open http://localhost:5000 on your web browser.