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.
- 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
- Python 3
- Django
- Django REST Framework
- SimpleJWT (for JWT authentication)
- SQLite (default, can be changed)
- HTML/CSS/JS (Bootstrap for frontend)
- Clone the repository:
git clone https://github.com/Prathameshsci369/Blog-Platform-Using-Rest_API/ cd Blog-Platform-Using-Rest_API - Run the setup script:
This will:
bash setup.sh
- Create a virtual environment (
newvenv) - Install dependencies
- Run migrations
- Collect static files
- Optionally create a superuser
- Create a virtual environment (
- Run the development server:
source newvenv/bin/activate python blog_platform/manage.py runserver - Access the app: Open http://127.0.0.1:8000/ in your browser.
- Clone the repository:
git clone https://github.com/Prathameshsci369/Blog-Platform-Using-Rest_API/ cd application - Create and activate a virtual environment:
python -m venv newvenv newvenv\Scripts\activate
- Install dependencies:
pip install --upgrade pip pip install -r requirements.txt
- 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
- (Optional) Create a superuser:
python blog_platform/manage.py createsuperuser
- Run the development server:
python blog_platform/manage.py runserver
- Access the app: Open http://127.0.0.1:8000/ in your browser.
All errors are logged to blog_platform/blog_platform.log for easy debugging.
MIT License