Skip to content

Prathameshsci369/Blog-Platform-Using-Rest_API

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Blog Platform Using Rest API

A simple blog platform built with Django and Django REST Framework. Users can register, log in, create posts, comment, and browse posts by category. The project features JWT authentication, a RESTful API, and a clean web interface.

Features

  • User registration and authentication (session & JWT)
  • Create, edit, and delete blog posts
  • Comment on posts
  • Category management
  • RESTful API endpoints
  • Error logging to a central log file

Tech Stack

  • Python 3
  • Django
  • Django REST Framework
  • SimpleJWT (for JWT authentication)
  • SQLite (default, can be changed)
  • HTML/CSS/JS (Bootstrap for frontend)

Installation & Setup

Linux

  1. Clone the repository:
    git clone https://github.com/Prathameshsci369/Blog-Platform-Using-Rest_API/
    cd Blog-Platform-Using-Rest_API
  2. Run the setup script:
    bash setup.sh
    This will:
    • Create a virtual environment (newvenv)
    • Install dependencies
    • Run migrations
    • Collect static files
    • Optionally create a superuser
  3. Run the development server:
    source newvenv/bin/activate
    python blog_platform/manage.py runserver
  4. Access the app: Open http://127.0.0.1:8000/ in your browser.

Windows

  1. Clone the repository:
    git clone https://github.com/Prathameshsci369/Blog-Platform-Using-Rest_API/
    cd application
  2. Create and activate a virtual environment:
    python -m venv newvenv
    newvenv\Scripts\activate
  3. Install dependencies:
    pip install --upgrade pip
    pip install -r requirements.txt
  4. Run migrations and collect static files:
    python blog_platform/manage.py makemigrations
    python blog_platform/manage.py migrate
    python blog_platform/manage.py collectstatic --noinput
  5. (Optional) Create a superuser:
    python blog_platform/manage.py createsuperuser
  6. Run the development server:
    python blog_platform/manage.py runserver
  7. Access the app: Open http://127.0.0.1:8000/ in your browser.

Logging

All errors are logged to blog_platform/blog_platform.log for easy debugging.

License

MIT License

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published