Giter Site home page Giter Site logo

gitter-badger / timestrap Goto Github PK

View Code? Open in Web Editor NEW

This project forked from overshard/timestrap

0.0 1.0 0.0 246 KB

Time tracking and invoicing you can host anywhere. Full export support in multiple formats and easily extensible.

License: BSD 2-Clause "Simplified" License

Python 61.24% Shell 0.58% HTML 30.09% JavaScript 3.24% CSS 4.84%

timestrap's Introduction

Timestrap

Travis Coveralls license

Time tracking and invoicing you can host anywhere. Full export support in multiple formats and easily extensible.

Warning

This app is currently very unstable as I have just started coding it. Everything may, and probably will, change.

Quickstart

Want to get up and running quickly?

Deploy

We create a default username and password with superuser access to get you started, please change it via the admin panel:

  • Username: admin
  • Password: changeme123

If you are manually deploying to Heroku without using the deploy button make sure you create two settings before pushing using heroku config:set:

heroku config:set DJANGO_SETTINGS_MODULE=timestrap.settings.heroku
heroku config:set SECRET_KEY=ChangeMeToSomethingRandom

You will also need to create a superuser after your push has been successful in order to login:

heroku run python manage.py createsuperuser

Demo Website

I've setup an instance on Heroku of Timestrap that resets every 10 minutes if you want to play with it. The username and password are set to the same as the Quickstart ones. If someone messes up the fun for everyone wait till the next reset or start your own Heroku instance.

Installation

For all systems you are going to need:

  • Python 2.7, 3.4, 3.5, or 3.6
  • Python virtualenv and pip packages
  • The ability to compile Python native extensions

Once you have all of that you can run the following and move onto Testing and/or Running Timestrap:

virtualenv .venv
source .venv/bin/activate
pip install -r requirements/development.txt

Ubuntu

You can install everything you need from apt.

sudo apt install build-essential python-dev virtualenv python-pip

Testing

I'm trying to push for 100% code coverage on this project! If you want to add or change something and test that everything still works you can do so easily with:

python manage.py test

If you push code to our primary repository we test for style adherence and code coverage. If you get a failed build to either of these we won't accept your code till it's fixed.

Running Timestrap

Always make sure you are in the virtual environment before running additional commands by first running source .venv/bin/activate. If you have already done this from the previous step and have not left the environment continue on!

If you have not yet migrated your database do so by running:

python manage.py migrate

You'll need to create your first user too:

python manage.py createsuperuser

After this you can run Timestrap and access it from your browser at localhost:8000.

python manage.py runserver

Generate Fake Data

Want to see how Timestrap would look after being used a while? Run fake to generate some data. Don't run this on a production database or you'll have to do a lot of clean up.

python manage.py fake

Password Resets and Email

To support email for things like password resetting you need to update Timestrap's settings. I will not presume your email situation and allow you to do this yourself by reading Django's documentation.

If you are using Heroku you can add sendgrid to your apps addons on the Heroku admin panel or by running:

heroku addons:create sendgrid

You then need to add these settings to timestrap/settings/heroku.py:

EMAIL_HOST = 'smtp.sendgrid.net'
EMAIL_HOST_USER = os.environ.get('SENDGRID_USERNAME')
EMAIL_HOST_PASSWORD = os.environ.get('SENDGRID_PASSWORD')
EMAIL_PORT = 587
EMAIL_USE_TLS = True

timestrap's People

Contributors

cdubz avatar cyriac avatar drn avatar overshard avatar

Watchers

 avatar

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.