Skip to content

RestAPI Python Blog Website is a blog application made with Django. Users can create accounts, write blog posts, and leave comments. The app has a RESTful API to connect with other front-end tools and uses SQLite for the database. It's a great project for learning how to build a basic blog.

License

Notifications You must be signed in to change notification settings

abinjustinkumaravel/RestAPI_Python_Blog_website

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RestAPI Python Blog Website

Overview

The RestAPI Python Blog Website is a fully functional blog application built with Django. This project demonstrates the use of RESTful API principles to handle blog content, allowing users to create, read, update, and delete blog posts.

Features

  • User authentication (login, registration, and logout)
  • CRUD operations for blog posts
  • User profiles with customizable information
  • Comment system for blog posts
  • Pagination for easy navigation through posts
  • Responsive design for optimal viewing on mobile and desktop devices
  • RESTful API for integration with front-end applications

Tech Stack

  • Backend: Django, Django REST Framework
  • Database: SQLite (or PostgreSQL, MySQL)
  • Frontend: HTML, CSS, JavaScript (if applicable)
  • Version Control: Git
  • Deployment: Heroku / Vercel / Local Server

Installation

Prerequisites

  • Python 3.x
  • pip (Python package installer)
  • Git

Clone the Repository

git clone https://github.com/abinjustinkumaravel/RestAPI_Python_Blog_website.git
cd RestAPI_Python_Blog_website

Install Dependencies

pip install -r requirements.txt

Set Up the Database

python manage.py migrate

Create a Superuser (for admin access)

python manage.py createsuperuser

Run the Development Server

python manage.py runserver

Navigate to http://127.0.0.1:8000/ in your browser to view the blog website.

API Endpoints

  • POST /api/register/ - Register a new user
  • POST /api/login/ - Login a user
  • GET /api/posts/ - Retrieve all blog posts
  • POST /api/posts/ - Create a new blog post
  • GET /api/posts/{id}/ - Retrieve a specific blog post
  • PUT /api/posts/{id}/ - Update a specific blog post
  • DELETE /api/posts/{id}/ - Delete a specific blog post

Usage

  1. Register a new account.
  2. Log in with your credentials.
  3. Create, edit, or delete blog posts as an authenticated user.
  4. Browse through existing posts.

Contributing

Contributions are welcome! Please follow these steps:

  1. Fork the repository.
  2. Create a new branch (git checkout -b feature/YourFeature).
  3. Make your changes and commit (git commit -m 'Add new feature').
  4. Push to the branch (git push origin feature/YourFeature).
  5. Open a pull request.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Contact

For inquiries, please reach out via:

About

RestAPI Python Blog Website is a blog application made with Django. Users can create accounts, write blog posts, and leave comments. The app has a RESTful API to connect with other front-end tools and uses SQLite for the database. It's a great project for learning how to build a basic blog.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published