Zelos is a open-source invoice app for software engineers who want control over their generated PDFs, have a nice overview and see beautiful graphical charts. It shows the yearly income, keeps track of customers and don't mix things up like I did before when using proprietary software. Experienced developers can continue on the project and customize it to their own needs.
- Install gems
bundle install
- Copy
config/database.yml.default
toconfig/database.yml
and setup environment database variables - Copy
config/secrets.yml.default
toconfig/secrets.yml
and define app secrets for mail server, repository and capistrano deployment options - Prepare rails database and seed example data
bundle exec rake db:migrate db:seed
- Install npm dependencies
npm install
- Provide all settings at
admin/settings
required for the generated invoice
bundle exec rails server
npm start
start gulp browsersync on localhost:8000
watch javascript with webpack
Chartkick together with groupdate requires time-zone support
Run this statements in SQL console
https://gist.githubusercontent.com/ankane/1d6b0022173186accbf0/raw/time_zone_support.sql
and this
SELECT CONVERT_TZ(NOW(), '+00:00', 'Etc/UTC');
should return the time instead of NULL
https://github.com/ankane/groupdate#for-mysql
Otherwise remove groupdate from gemfile and remove the group_by_month function from entries/index
Capistrano deployment http://capistranorb.com
run commands with cap
followed by environment like staging/production
eg: cap production deploy
cap -T
show all capistrano tasks
cap production "invoke[console]"
invoke rake command on live server
cap production rails:console
run remote console
bundler must be installed globally on server:
gem install bundler
cap production setup:upload_yml
upload database.yml and secrets.yml to production server
cap production deploy
for deployment
currently there are two languages availble, english and german. Copy one of them to your corresponding language file under config/locales/yourlang.yml
and set the language key in the settings eg: en
or de