Git Product home page Git Product logo

ndbiller / taskr Goto Github PK

View Code? Open in Web Editor NEW
1.0 2.0 0.0 219 KB

Web Application. Does time tracking for IHK trainees who need to print a report of their weekly progress and activities. Made with Ruby and Rails. Runs on Heroku. Fork and deploy to your own Heroku account to use (Free Postgres database on Heroku is limited to 10000 rows).

Ruby 52.25% JavaScript 1.28% CSS 8.16% HTML 37.63% CoffeeScript 0.68%
heroku taskr ruby rails postgresql time-tracker trainee

taskr's Introduction

taskR

Web Application. Does time tracking for IHK trainees who need to print a report of their weekly progress and activities. Made with Ruby and Rails. Runs on Heroku.

https://task-r.herokuapp.com/

Fork and deploy to your own Heroku account to use.
Free Postgres database on Heroku is limited to 10000 rows.

development

required environment variables:

TASKR_DATABASE_USERNAME  
TASKR_DATABASE_PASSWORD  
SECRET_KEY_BASE_DEVELOPMENT  
SECRET_KEY_BASE_TEST  
SECRET_KEY_BASE  

run:

source .env  
bundle exec rails s  

production

the heroku postgres database is limited to 10000 rows.

backup production database from heroku to local postgres database

postgres version should be: 9.5.5

get info about postgres from heroku:

heroku pg:info --app task-r  

get info on the local postgres database version:

psql -V  

connect to the local postgres database and list all databases:

sudo su postgres  
(enter your sudo password)  
psql  
\l  

create user with password and alter roles:

CREATE USER nd WITH PASSWORD 'db_password';  
ALTER ROLE nd WITH CREATEROLE;  
ALTER ROLE nd WITH CREATEDB;  

change database owner to new user:

ALTER DATABASE db_name OWNER TO new_owner;  

if it exists, drop the local database before pulling from heroku:

DROP DATABASE "taskR_development";  
\q  
exit  

and backup the production database from heroku to your local postgres database:

source .env  
PGUSER=`echo $TASKR_DATABASE_USERNAME` PGPASSWORD=`echo $TASKR_DATABASE_PASSWORD` heroku pg:pull DATABASE taskR_development --app task-r  
(enter your heroku credentials: email and password)  

(note: i think you can push from local to production with the same command, just change pull to push)

publish changes to production environment on heroku

deploy changes from master to heroku:

git push heroku master  

deploy changes from branch to heroku (bad practice!):

git push heroku branchname:master  

deploy migrations on heroku:

heroku run rake db:migrate --app task-r  

taskr's People

Contributors

andiedoc avatar dependabot[bot] avatar ndbiller avatar

Stargazers

 avatar

Watchers

 avatar  avatar

taskr's Issues

csv export

select tasks or time range and export as csv

add categories

Krank, Urlaub, Feiertag
plus evtl. Ausflug, Geschäftsreise

department and category

remove hardcoded list and add department with categories to user and task
default should be none/none, user can add more in view, display list in user settings / task create & edit view

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.