A full-stack blog application built with React (frontend) and Django (backend/API).
Features:
- User-friendly navigation with categorized blog posts.
- Modern web technologies for a responsive and performant experience.
Configuration:
1. Django:
- Configure settings (database, secret key, etc.) in
settings.py. - Configure URLs in
urls.pyto point to your React app's build output directory.
2. React:
- Create a
.envfile to store any sensitive environment variables (e.g., API endpoint URLs). - Update configuration values in React code if necessary (e.g., API base URL).
Getting Started
Prerequisites:
- Node.js and npm (or yarn) installed.
- Python and pip installed.
Installation:
- Clone the repository:
git clone https://github.com/akhtarmdsaad/react-blog.git - Navigate to the project directory:
cd react-blog - Copy and paste the following command into terminal:
pip install django
pip install django-cors-headers
pip install djangorestframework
pip install djangorestframework-simplejwt
pip install django-summernote
cd frontend
npm install
This command will install all the necessary files required to run the project. Make sure you are connected to Internet
Open a terminal and paste the following code:
cd backend
python manage.py makemigrations
python manage.py migrate
python manage.py runserver
Open another terminal and paste the following code:
cd frontend
npm start


