Perform a checkout of this repository: git checkout github.com/Sinapse-Energia/EPD-Simulator.git
This is a Ruby on Rails application that is able to run over the version 4.2.0 of the framework and use a Postgres database in order to save the necessary data. Following are the steps to follow in order to deploy the application in an empty server.
-
Install the ruby on rails framework version 4.2.0 (gem, bundle, rails, etc.)
-
Install postgresql database
At this moment, the rails environment should be ready and the application could be deployed
Then, go to the root directory of the application and execute the following commands in order to execute the app:
-
Open the file config/database.yml and set the credentials of your postgresql database
-
bundle install : This command install all the gems required by the app and set in the Gemfile
-
bundle exec rake db:migrate : This command create the database
-
bundle exec rake db:seed : This command init the database with the necessary data
-
rails server : This command execute the application in a web server. At this moment the application is accessible through 127.0.0.1:3000