System sales analysis via log file (.txt)
This system works with upload a log sales file (sales batch) and generate a total revenue about this batch.
Warn: This is not a real system. It is just one example of use Ruby on Rails.
This project is not done to using in production.
This guide go to help you build this project in development environment. We recommend you use one ruby version manager as rbenv | rvm.
-
- Clone this project on Github with
git clone https://github.com/paulopatto/Splunka.git
- Clone this project on Github with
-
- In home path this project you should download all dependencies with bundler
bundle install
- In home path this project you should download all dependencies with bundler
-
- After run bundler you should you database config, one example file is in config/database.yml.sample, maybe you want use it with
cp config/database.yml.sample config/database.yml
.
- After run bundler you should you database config, one example file is in config/database.yml.sample, maybe you want use it with
-
- After configured database you go run
bundle exec rake db:migrate
to generate ou database schema.
- After configured database you go run
To run tests you user bundle exec rspec spec
, to run webserver use bundle exec rails server
,
you server should listen in http://localhost:3000/
- Ruby 2.1.3
- Rails 4.2.7
- SQLite 3 (in ubuntu run
sudo apt-get install -y sqlite3 libsqlite3-dev
) - Gem Bundler (
gem install bundler
)