Skip to content

Track & analyze payroll in order to make informed decisions.

Notifications You must be signed in to change notification settings

bendyworks/payroll

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

payroll

[CI Status] Code Climate Dependency Status

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:

  1. clone it
  2. Make sure rvm, yarn, and the correct ruby are installed
  3. bundle install
  4. rake db:setup
  5. yarn install
  6. ./bin/webpack-dev-server
  7. rails s
  8. visit localhost:3000

To run the tests:

  1. rake

To deploy:

  1. once: git remote add heroku https://git.heroku.com/bendyworks-payroll.git
  2. bin/deploy.sh

To create a new user:

  1. From the project directory, start the console with rails c.
  2. User.create(email: '[email protected]', password: 'yourpassword')

To change your password in the console:

  1. From the project directory, start the console with rails c.
  2. u = User.find_by_email('[email protected]')
  3. u.update password: 'newpassword'

Using React Components

  1. React components live inside app/javascript/components
  2. Components can be rendered inside the views with:
  = 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:

  1. Don't // require_tree . in the application.js manifest. JavaScript assets still live in the app/assets/javascripts/ directory.
  2. Add new JavaScript assets to config/intializers/assets.rb's Rails.application.config.assets.precompile list.
  3. Include the JavaScript in the specific view where it is required by using a javascript_include_tag.

About

Track & analyze payroll in order to make informed decisions.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published