Simple internal application to visualize payroll and inform salary decisions at Bendyworks. Please feel encouraged to fork this and use for your company's needs as well. Pull requests encouraged!
We're using google_visualr gem for graphing. Documentation
To get this up and running:
bundle install
rake db:setup
yarn install
./bin/webpack-dev-server
rails s
To run the tests:
rake
To deploy:
git remote add heroku https://git.heroku.com/bendyworks-payroll.git
bin/deploy.sh
To create a new user:
rails c
.User.create(email: 'your@email.com', password: 'yourpassword')
To change your password in the console:
rails c
.u = User.find_by_email('your@email.com')
u.update password: 'newpassword'
Using React Components
= react_component("ComponentName", props: {})
= react_component("ComponentName", props: {}, {prerender: true})
Let's use page specific JavaScript, which means that you need to remember these main ideas:
// require_tree .
in the application.js
manifest.
JavaScript assets still live in the app/assets/javascripts/
directory.config/intializers/assets.rb
's
Rails.application.config.assets.precompile
list.javascript_include_tag
.