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.
To see the features of the project Click Here.
To View Application Deploy Click Here
To see the license of the project Click Here
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.
-
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/.
-
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.
-
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.