Overview
Django-React-Blog is a “Blogging Platform” that provides all the general features a blog should have. The backend of the platform is built on Django using Django Rest Framework, while the frontend is built using ReactJS.
Features
- Login/Registration
- Minimal Design
- Create/Edit/Delete Your Posts
- User Profile
- Comment Enable On Post Using disqus
- Comment Count On Post
- Live Search Blog
- Filter Blog By Author By Click on Author Name
- Admin Panel
- Pagination on All blog list and Live search
- Create/View/Edit/Delete A User
- View/Reply All Comments In The Blog
- View/Edit/Delete All Newsletter In The Blog
- View/Reply All Comments To A Specific Post
- Publish/Unpublish A Post
Installation
To install the Django-React-Blog theme, follow these steps:
Backend Setup
- Clone this repository:
git clone https://github.com/dojutsu-user/Django-React-Blog.git - Change the current directory to the backend folder:
cd ./Django-React-Blog/backend/adminapi/ - Create a virtual environment and install all backend dependencies with pipenv:
pipenv install - Start the virtual environment:
pipenv shell - Change the working directory to adminapi which contains the manage.py file:
cd ./adminapi - Run
python manage.py makemigrations - Run
python manage.py migrate - Create a superuser:
python manage.py createsuperuser - Run the server:
python manage.py runserver
Frontend Setup
- Navigate the current working directory to landing:
cd ./Django-React-Blog/frontend/blog_frontend/ - Install all frontend dependencies using npm:
npm install - Run the server:
npm start
Creating The First Post
- Make sure that both the Backend and Frontend Servers are running.
- Open your browser and navigate to
localhost:3000. - Go to
http://localhost:3000/login/. - Go to the Signup page if you are not registered
http://localhost:3000/signup/. - Login with the superuser credentials created while setting up the Backend (Step: 8).
- Navigate to Dashboard -> Your all New Post (
http://localhost:3000/user/dashboard/create-new-post). - Navigate to Dashboard -> Create New Post (
http://localhost:3000/user/addblog/). - Fill the form to create a new post and then submit it.
- The submitted post will not appear on the homepage unless and until the admin approves it.
- To approve the post, go to Dashboard -> Admin Panel -> View All Posts and then click on the Edit Button.
- Check the checkbox labeled Verified and then submit.
- After the post gets published, it will be displayed on the homepage of the blog (
localhost:3000).
Backend API Documentation
API Documentation is generated using the default tool provided by Django Rest Framework.
To view the API documentation:
- Make sure that the Backend Server is running.
- Access the API documentation through the provided tool.
Summary
Django-React-Blog is a blogging platform built with Django on the backend and ReactJS on the frontend. It offers a range of features including user registration, post creation, user profiles, comments, search, filtering, admin panel, and more. The installation process involves setting up the backend and frontend servers, creating a superuser, and creating the first post. API documentation is also available for reference.