1.8 KiB
1.8 KiB
Development
Obviously a working version of local NeoDB instance has to be established first, see install guide.
Install development related packages
python3 -m pip install -r requirements-dev.txt
Install pre-commit hooks
$ pre-commit install
pre-commit installed at .git/hooks/pre-commit
Run Test
python3 manage.py test
will run the tests
Alternative you may create the test database from freshly created database:
CREATE DATABASE test_neodb WITH TEMPLATE neodb;
and run the test without re-create it every time
$ python3 manage.py test --keepdb
Using existing test database for alias 'default'...
System check identified no issues (2 silenced).
........................................................
----------------------------------------------------------------------
Ran 56 tests in 1.100s
OK
Preserving test database for alias 'default'...
Applications
Main django apps for NeoDB:
users
manages user in typical django fashionmastodon
this leverages Mastodon API and Twitter API for user login and data synccatalog
manages different types of items user may review, and scrapers to fetch from external resources, see catalog.md for more detailsjournal
manages user created content(review/ratings) and lists(collection/shelf/tag), see journal.md for more detailssocial
manages timeline for local users and ActivityStreams for remote servers, see social.md for more detailslegacy
this is only used by instances upgraded from 0.4.x and earlier, to provide a link mapping from old urls to new ones. If your journey starts with 0.5 and later, feel free to ignore it.