Scribe is a Django-based RESTful API application for managing a blog.
- Create, retrieve, update, and delete posts
- Assign categories and users to posts
- Filter and search posts by title, description, and category
- Pagination support for listing posts
- Python 3.x
- Django 3.x
- Django REST Framework 3.x
- Clone the repository:
$ git clone https://github.com/diina-gh/django-api.git
- Create a virtual environment:
$ python3 -m venv env
- Activate the virtual environment:
$ source env/bin/activate
- Install the required dependencies:
$ pip install -r requirements.txt
- Apply the database migrations:
$ python manage.py migrate
- Start the development server:
$ python manage.py runserver
- Access the API at
http://localhost:8000/api/
The main configuration files are:
settings.py
: Contains the Django project settingsurls.py
: Defines the API endpoint URLs and their associated views