About | Features | Technologies | Requirements | Starting | License | Contact
Django-Shoping is a simple E-commerce website built using Django. This project allows users to browse and purchase products. It includes a robust authentication system that enables users to sign up, log in, and log out. The project utilizes a RESTful API for product browsing and purchasing, with JWT (JSON Web Tokens) for secure user authentication and authorization.
This project is designed as a Full-Stack Training Project, making it an excellent resource for beginners to learn how to build a full-stack application using Django and React.
you can see the live demo here
- Register and log in securely.
- Browse and purchase products using PayPal
.
- View and update their profile information.
- Access their order history.
- Add, update, and delete products.
- Manage orders and user accounts.
- RESTful API: The project uses a RESTful API to handle product browsing and purchasing.
- JWT Authentication: The project uses JWT (JSON Web Tokens) for secure user authentication and authorization.
- PayPal Integration: The project integrates PayPal for payment processing.
- Responsive Design: The project is designed to be responsive and mobile-friendly.
The following tools and frameworks were used in this project:
-
Backend:
- Django
- Django REST Framework
- django-simple-jwt
- AWS S3 for file storage.
- AWS RDS for database management.
- Cloudinary Storage for media storage.
- PostgreSQL for the database.
-
Frontend:
- React
- React Bootstrap
- Axios for API requests.
- redux for state management.
-
Payment Integration:
Before starting, ensure you have the following installed:
- Python 3.x
- Node.js
- npm (Node Package Manager)
- PostgreSQL (or any other database supported by Django)
# Clone this project
$ git clone https://github.com/romanyn36/Django-react-e-commerce.git
# Navigate to the project directory
$ cd Django-react-e-commerce
# Create a virtual environment
$ python -m venv venv
# Activate the virtual environment
$ source venv/bin/activate # For Linux/Mac
$ venv\Scripts\activate # For Windows
# Install backend dependencies
$ pip install -r requirements.txt
# Set up environment variables in a .env file
# Example: SECRET_KEY, DATABASE_URL, etc.
# Migrate the database
$ python manage.py migrate
# Run the Django server
$ python manage.py runserver
# please create a superuser to access the admin panel and update email field in the user model http://127.0.0.1:8000/admin
# then login to http://localhost:3000/ you can see the admin panel in the top right corner
# this won't be visible to the normal users
# Navigate to the frontend directory
$ cd frontend
# Install frontend dependencies
$ npm install
# Start the React development server
$ npm start
# The frontend will be available at http://localhost:3000/
📝 License This project is licensed under the MIT License. For more details, see the LICENSE file.
- Made by Romani – an AI Engineer and Django Developer. Feel free to reach out for collaborations, questions, or new projects!





