Giter Club home page Giter Club logo

t-e-manager's Introduction

Time Tracker and Expense Manager app for Freelance

I have designed and created this app to track my freelance activity, with a split per client, projects and tasks.
There is also a section related to Expenses Management, linked with a mobile app. From the mobile app, we can scan an expense and add it to a project.
Note that the Expense Management section is under development and will be soon available, as well as the mobile app.

Requirements

  • Python 3.6
  • virtualenv (or venv if you are using Python 3.6)
  • git
  • Java, to use Elasticsearch

Setup

Step 1: Clone the git repository

$ git clone https://github.com/cdcf/t-e-manager.git
$ cd t-e-manager

Step 2: Create a virtual environment.

For Linux, OSX or any other platform that uses bash as command prompt (including Cygwin on Windows):

$ virtualenv venv
$ source venv/bin/activate
(venv) $ pip install -r requirements.txt

If you are using Python 3.x:

$ python3 -m venv venv
$ source venv/bin/activate
(venv) $ pip install -r requirements.txt

For Windows users working on the standard command prompt:

> virtualenv venv
> venv\scripts\activate
(venv) > pip install -r requirements.txt

Step 3: Run the initial database migration:

(venv) $ export FLASK_APP=t-e-manager.py
(venv) $ flask db init
(venv) $ flask db migrate -m "initial migration"
(venv) $ flask db upgrade

Step 4: Start the application:

(venv) $ flask run
 * Running on http://127.0.0.1:5000/
 * Restarting with reloader

Now open your web browser and type http://localhost:5000 in the address bar to see the application running.

Step 5: Create an administrator user

Open another terminal session within the virtual env

(venv) $ flask shell        # this is run a Python shell with an access to the app files
>>> Role.insert_roles()     # this will add the different roles into the database
>>> Role.query.all()        # this will list the roles inserted in the database so you can pick one when creating the admin role
[<Role User>, <Role Moderator>, <Role Administrator>]

In your browser, use the url http://localhost:5000/register_admin.html

If you need to add non-admin users, you can now do it from the visible link "Register" in the top right corner of the app.

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.