This is LiveLike's new-hire backend code assessment application.
![]() |
преди 4 години | |
---|---|---|
grunge | преди 4 години | |
.gitignore | преди 4 години | |
Makefile | преди 4 години | |
README.md | преди 4 години | |
manage.py | преди 4 години | |
requirements.txt | преди 4 години | |
tox.ini | преди 4 години |
This Django project implements a catalogue of Grunge rock music. It has a fully-functional Django admin interface, and a read-only REST API. It contains three related data models:
Artist
Album
Track
uuid
, a name
, and contain 0 or more tracks from this catalogue. The tracks should be orderable in the playlist.tests/test_playlists.py
. The goal is to have no skipped or failing tests.$ python3 -m venv venv
$ source venv/bin/activate
$ pip install --upgrade pip
$ pip install --requirement=requirements.txt
$ python manage.py migrate
$ python manage.py loaddata initial_data
$ python manage.py createsuperuser
$ python manage.py runserver
Log into the Django admin with your superuser account at:
Browse the REST API at:
http://localhost:8000/api/v1/.
You can check your work at any time by running:
$ make ready
This will run the default code linters and the test suite. You can format your code to what the linters expect with:
$ make format