PyQuotes is a Django-based web application and REST API. That will allow you to launch an online quotes service.
PyQuotes is a Django-based web application and REST API. That will allow you to launch an online quotes service.
Python | Django | Pycharm |
---|---|---|
Index Page
Persons Page
Random Quotes Page
Show Quotes By Person
Show Quotes By Category
Add Category From Front-End
Add Person From Front-End
Add Quote From Front-End
git
,python3
, pip3
, virtualenv
in your operating systemgit clone https://github.com/mavenium/PyQuotes # clone the project
cd PyQuotes # go to the project DIR
virtualenv -p python3 .venv # Create virtualenv named .venv
source .venv/bin/activate # Active virtualenv named .venv
pip install -r requirements.txt # Install project requirements in .venv
python manage.py makemigrations # Create migrations files
python manage.py migrate # Create database tables
python manage.py collectstatic # Create statics files
python manage.py runserver # Run the project
http://127.0.0.1:8000/
to use projecthttp://127.0.0.1:8000/api/persons/ # JSON objects of persons
http://127.0.0.1:8000/api/categories/ # JSON objects of categories
http://127.0.0.1:8000/api/quotes/ # JSON objects of quotes
http://127.0.0.1:8000/api/quotes_random/ # JSON objects of quotes by random
http://127.0.0.1:8000/api/qbp/pk/ # JSON objects of quotes by person pk
http://127.0.0.1:8000/api/qbc/pk/ # JSON objects of quotes by category pk