This is a data storage project build for the company I work at, it's fully open source if you care for using it and should be easy to setup
- Ruby 2.1.0 or newer
- Rails 4.0.2 or newer
- PostgreSQL 9.1 or newer
- ImageMagick
- Graphviz
- Git
- PostgreSQL with ActiveRecord
- Template Engine: ERB
- Front-end Framework: Twitter Bootstrap (Sass)
- Form Builder: Bootstrap Form
- Authentication: Devise
- Authorization: CanCan
Installation guide, set up PostgreSQL, then the project.
- Create a user and the databases
createuser fix -d -s
createdb -Ofix -Eutf8 fix_development (only needed for development)
createdb -Ofix -Eutf8 fix_production (only needed for production)
createdb -Ofix -Eutf8 fix_test (only needed for development)
- Pick a folder you'd like to use and clone the git repository in there
cd <where-you-want-the-project>
git clone git@github.com:nohm/fix.git
cd fix
- Install dependencies
bundle install
- Fill in the config file
config/application.yml
<your-text-editor> config/application.yml
- Create database tables and base data and initialize routes
rake db:migrate
rake db:seed
rake routes
- Start the server and work on it!
sh script/server
- You can use the development guide if you want, but to deploy your own version use this
- First follow the development version for your local environment, then in that folder;
- Configure
config/deploy.rb
<your-text-editor> config/deploy.rb
- Prepare your server using
mina
mina setup
- Copy over or edit
config/application.ymlandconfig/database.yml
scp config/application.yml <user>@<server>:<deploy-location>/shared/config/
scp config/database.yml <user>@<server>:<deploy-location>/shared/config/
OR
<your-text-editor> <deploy-location>/shared/config/application.yml
<your-text-editor> <deploy-location>/shared/config/database.yml
- Deploy to your server using
mina
mina deploy
- If you use
Passenger Phusionthe application will be running now - If you don't you'll have to edit
config/deploy.rbto start the server, or use your own solution
If you make improvements to this application, please share with others.
- Fork the project on GitHub.
- Make your feature addition or bug fix.
- Commit with Git.
- Send the author a pull request.
MIT