Skip to content

Mechantchulo/BLOG-API

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Blog API Project

This is a simple blog API built using Django and Django REST Framework, based on the Django for APIs tutorial by William S. Vincent.

📌 Features

  • Token-based authentication
  • CRUD operations for blog posts
  • Clean project structure following best practices
  • Powered by Django REST Framework (DRF)

📁 Project Structure

blogapi/
├── blog_project/     # Django project settings
├── posts/            # Blog app with API logic
├── db.sqlite3        # SQLite database
├── manage.py         # Django management script
├── Pipfile           # Project dependencies

🚀 Getting Started

1. Clone the Repository

git clone https://github.com/Mechantchulo/blogapi.git
cd blogapi

2. Install Dependencies

Using pipenv:

pipenv install
pipenv shell

Or with pip:

pip install -r requirements.txt

3. Apply Migrations

python manage.py migrate

4. Create a Superuser (optional)

python manage.py createsuperuser

5. Run the Development Server

python manage.py runserver

Visit http://127.0.0.1:8000/api/ to view the API.

🛠️ Technologies Used

  • Django
  • Django REST Framework
  • SQLite
  • Pipenv

📚 Reference

This project is based on the Django for APIs book by William S. Vincent.


✨ Author

Erick Mutua

Feel free to fork, star, and contribute!

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages