Lor is a django application developed for favoriting Lord of the Rings characters and quote, This application fetches data from The One APi which provides all data about The Lord of the Rings, the epic books by J. R. R. Tolkien and the official movie adaptions by Peter Jackson.
- User
- Character
- Quote
- Favorite
- Clone the repo
git clone https://github.com/swilltec/lor/
- Navigate to bookmark directory and run
pip install -r requirements
-
Run development server
python manage.py shell or make start
-
Navigate to API_DOCUMENTATION to view API documentation NB:
- View Makefile for more commands
- Base API url = "localhost:8000/api/v1/"
This project is divided into three layers of presentation (Template), persistence (Model), and actions or rules (View) is a common pattern. Model-view-template (MVT) is a way of modeling data for persistence, providing users with a view into that data, and allowing them to control changes to that data with some set of actions.
- The Character ID was ignored in the favorite quote endpoint. It uses the character ID in the quote details
- Testing