GitXplorerGitXplorer
S

debt

public
3 stars
0 forks
3 issues

Commits

List of commits on branch main.
Unverified
f065ea5f751063ee7b52c8deca48f7c64b42a9c5

Sort imports

SSiecje committed 3 years ago
Unverified
5bbc84f0f0ea707e607c62b152d8e388741aaad2

Transport money amounts as strings

SSiecje committed 3 years ago
Unverified
d59f8d5855e70e46e08f165205a599b5a56a3f59

Use strings for pay_day and pay_type

SSiecje committed 3 years ago
Unverified
a6912f7bad607dbc0b77e7c44c8bfde80cf19b1a

Correct CI branch

SSiecje committed 3 years ago
Unverified
19b2e916e6e186c68ef6203147d56525ef1260d6

Fix flake8 issues

SSiecje committed 3 years ago
Unverified
8cc4306229e07c1f86368b0537b5534adfe15f9d

Use single quotes

SSiecje committed 3 years ago

README

The README file for this repository.

Debt API

Features

  • Models
    • [x]Incomes
    • [x]Expenses
    • [x]Credit Cards
    • [x]Overdrafts
    • [ ]Loans
    • [x]Investments
    • [x]Tax Brackets
  • [x]Calculate which debt to pay off
  • [x]Calculate time till debt free
  • [ ]Visualize net worth with money in different accounts

Development Setup

pipenv install --dev
pipenv shell
python manage.py migrate
# Run the API
python manage.py runserver

The API is now available at http://localhost:8000/api/v1.0/

Usage

Create User

http --json POST http://localhost:8000/api/v1.0/users/ \
username=username password=password email=username@example.com

Authentication

http --json POST http://localhost:8000/api/v1.0/auth/token/ \
username=username password=password
HTTP/1.0 200 OK
Allow: POST, OPTIONS
Content-Type: application/json
Date: Thu, 18 Jun 2015 17:27:23 GMT
Server: WSGIServer/0.1 Python/2.7.6
X-Frame-Options: SAMEORIGIN

{
    "token": "ae25e52afb6d929bdcca7f413d26043b5ae5348d"
}

Get Data

$ TOKEN=ae25e52afb6d929bdcca7f413d26043b5ae5348d
# Authenticated requests use 'Authorization: Token'
$ http --json GET http://localhost:8000/api/v1.0/credit-cards/ \
"Authorization:Token "$TOKEN""

Tests

coverage run manage.py test
coverage html
firefox tmp/coverage/index.html