This Ruby On Rails app is a tool built to effectively manage data center infrastructures.
Run the following commands to install stable version:
curl -L https://get.rvm.io | bash -s stable
source ~/.rvm/scripts/rvm
rvm install 3.3.0
rvm use 3.3.0 --default
Bundler is a tool that allows you to install multiple gem versions, run this command to install bundler:
gem install bundler
Clone project code from GitHub:
git clone https://github.com/nanego/my-dcim
cd my-dcim
bundle install
Using following command in terminal to get path of wkhtmltopdf library path that is already installed on system.
which wkhtmltopdf
Edit config/config.yml with your own application wkhtmltopdf path.
wkhtmltopdf_path: YOUR_WKHTMLTOPDF_PATH
Edit config/config.yml with your own application smtp settings.
smtp_setting:
address: smtp.gmail.com
port: 587
authentication: :plain
enable_starttls_auto: true
user_name: YOUR_EMAIL_HERE
password: YOUR_PASSWORD_HERE
Copy config/database.yml.copy to config/database.yml and set your postgres username/password. After that run following command from terminal to create PostgreSQL database specified in database.yml file.
rake db:create
rake db:migrate
Loading default values in database
rake db:seed
Your application is ready to use. Run rails server using following command:
rails server
and use your application in browser by typing in url: localhost:3000
You can also configure Apache, Nginx or any other web/application server of your choice to execute in production mode.
Here are some of the ways you can contribute:
As with any large and growing codebase, test coverage is not always as good as it could be. Help improving test coverage is always welcome and will help you learn how My-DCIM works.
- Fork the Github repository
- Create your feature branch (
git checkout -b my-awesome-feature
) - Commit your changes (
git commit -am 'Added some feature'
) - Push to the branch (
git push origin my-awesome-feature
) - Create new Pull Request