GitXplorerGitXplorer
S

debt

public
3 stars
0 forks
3 issues

Commits

List of commits on branch main.
Verified
af2c78fd361356e61929695a29ae91297490f50d

Merge pull request #17 from Siecje/dependabot/pip/certifi-2022.12.7

SSiecje committed 2 years ago
Verified
b806e64e436149631ec8b0fd272ee5799b2d1cc7

Bump certifi from 2022.6.15 to 2022.12.7

ddependabot[bot] committed 2 years ago
Verified
e50368fa41aee81b7825516982b678b65f3a4c9f

Merge pull request #16 from Siecje/dependabot/pip/django-4.0.7

SSiecje committed 2 years ago
Verified
95cededeb5512421f63c6b09d4c6dfd3fedd4089

Bump django from 4.0.6 to 4.0.7

ddependabot[bot] committed 2 years ago
Verified
549d77c31097f1ced058c16edc54dcd0923484fc

Merge pull request #15 from Siecje/dependabot/pip/django-4.0.6

SSiecje committed 3 years ago
Verified
04b54830ce0a66c3c842585823562b9bf56de531

Bump django from 4.0.4 to 4.0.6

ddependabot[bot] 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