Skip to content

Latest commit

 

History

History
108 lines (58 loc) · 3.48 KB

README.md

File metadata and controls

108 lines (58 loc) · 3.48 KB

SIGS - Sistema Inteligente de Gestão de Salas

BuildStatus Coverage Status Ruby Rails MIT License

SIGS is a Ruby on Rails website project design for UnB (University of Brasília). The project aims to facilitate and automate the process of allocation of university rooms by city officials, coordinators and other stakeholders. For more informations see the The Wiki Project.

Features

To see the features of the project Click Here.

Heroku Deploy

To View Application Deploy Click Here

License

To see the license of the project Click Here

Getting Started

There are 2 ways to set up your environment. You can use Docker to simulate isolate containers that has only the software dependencies, or you can run a virtual machine and simulate a whole system using Vagrant. To each case, you can follow the instructions below.

Set up using Docker

  • Install Docker

  • Install Docker Compose

  • Build the container image

    $ docker-compose build
    
  • Run the container

    $ docker-compose up -d
    
  • Set up the Database

    To create the database, run the migration and populate it with fictional data

    $ docker-compose run web rails db:create db:migrate db:seed
    
  • Open the internet browser in http://localhost:3000/.

Set up using Vagrant

  • Install the virtual machine software VirtualBox.

    $ sudo apt-get install virtualbox
    
  • Install the virtual environment Vagrant.

    $ sudo apt-get install vagrant
    
  • Clone the project Repository.

    $ git clone https://github.com/fga-gpp-mds/2017.1-SIGS.git
    
  • In the folder of project, rise the virtual environment.

    $ vagrant up --provision
    
  • Run the virtual environment.

    $ vagrant ssh
    
  • Get in the folder of project on Vagrant.

    $ cd vagrant/SIGS
    
  • Install all the gems used in the project.

    $ bundle install
    
  • Create and populate all the tables of the MySql Database.

    $ rails db:create db:migrate db:seed
    
  • Run the Rails server project on Vagrant.

    $ rails s -b 192.168.2.15
    
  • Open the internet browser in http://192.168.2.15:3000.

Using the application

  • Login with the DEG user or the Coordinator user.

    DEG User
    e-mail: "wallacy@unb.br"
    password: "123456"
    
    Coordinator User
    e-mail: "caio@unb.br"
    password: "123456"
    

For more install and configurate informations, access the Tutorial.