Skip to content
This repository has been archived by the owner on Aug 20, 2019. It is now read-only.
/ bundy_clock Public archive

This is how we find out how much we get paid every month.

Notifications You must be signed in to change notification settings

nadarei/bundy_clock

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Bundy clock

This is the Bundy clock used by Nadarei.co.

Setup

Initialize Bundler:

$ bundle

Then set up your rvmrc (.rvmrc):

# .rvmrc
rvm use 1.9.3@bundy --create
source .env

Then set up your environment config file (.env):

# .env
# Get an API key from: https://code.google.com/apis/console
export GOOGLE_CLIENT_ID="id here"
export GOOGLE_SECRET="secret here"

Set up your config/database.yml (see the example files). Here's the easiest way:

$ cp config/database.sqlite config/database.yml

Invoke setup:

$ rake db:setup

Start development env

$ source .env
$ rails server

(Sourcing the .env file may not be needed if you use RVM)

Console tips

Run the console on the production environment using:

$ bundle exec heroku rails console

Here are some common commands:

# File a leave
User.find_by_name("Rico").time_logs.find_or_initialize_by_date("2012/03/15")
_.update_attributes leave_type: "vacation", leave_duration: 0.5

About

This is how we find out how much we get paid every month.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published