Proof of concept double-entry accounting REST API backend.
- Ununtu
- PostgreSQL
https://github.com/pyenv/pyenv#installation
Installation of libffi-dev
required due bug
pyenv/pyenv#1183 (comment)
sudo apt-get install libffi-dev
pyenv install 3.7.1
curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
python3 get-pip.py --user
python3 -m pip install --user pipenv
git clone https://github.com/dtatarkin/double_entry.git
cd double_entry
pipenv install
sphinx-apidoc --doc-project double_entry --output-dir ./docs/apidoc . ./*/migrations ./manage.py accounts/tests/ postings/tests
sphinx-build ./docs ./docs/_build
Config file: ./prospector.yaml
prospector
Create ./.env
see .env.example
e.g.
SECRET_KEY=<SECRET_KEY>
POSTGRES_DATABASE=double_entry
POSTGRES_USER=double_entry
POSTGRES_PASSWORD=double_entry
POSTGRES_HOST=127.0.0.1
POSTGRES_PORT=5432
python manage.py makemigrations
pytest
with coverage report:
pytest --cov=.
python manage.py migrate
python manage.py loaddata users.json
python manage.py loaddata accounts.json
python manage.py runserver
http://127.0.0.1:8000/swagger/
- No user authentication yet.
- No data filtering implemented (e.g. django-filter).
- No Admin Site
- Not enough documentation