This is an eCommerce web application built with Django and React.js. It utilizes Django Rest Framework (DRF) for building RESTful APIs in the backend and incorporates features such as user authentication, product management, search functionality, order processing, and product categories. For order processing, the Razorpay is integrated.
check it out here https://bewra.vercel.app
- User Authentication: Users can register, log in, and manage their accounts.
- Add and Delete Products: Admin users can add new products and delete existing ones.
- Search Product: Users can search for products based on various criteria.
- Order Management: Users can place orders, view their order history, and track order status.
- Categories of Products: Products are categorized into different categories for easy navigation.
- Razorpay Payment Gateway Integration: Integrated Braintree API for secure payment processing.
-
Backend:
- Django: Python-based web framework for building robust web applications.
- Django Rest Framework (DRF): Toolkit for building RESTful APIs.
- Razorpay : Payment gateway integration for processing orders.
-
Frontend:
- React.js: JavaScript library for building interactive user interfaces.
- React Router Dom: Library for handling client-side routing in a React application.
- Clone the repository:
git clone https://github.com/as4c/E-Commerce.git
- Change into the project directory:
cd ecommerce-django-project
- Set up the backend:
- Create and activate a virtual environment.
- Install the required Python dependencies:
pip install -r requirements.txt
- Update the database settings in the
settings.py
file. - Apply database migrations using
python manage.py migrate
. - Start the Django development server using
python manage.py runserver
.
- Set up the frontend:
- Change into the
ecomfrontend
directory:cd ecomfrontend
- Install the required Node.js dependencies:
npm install
- Start the React development server:
npm start
- Open your web browser and visit
http://localhost:3000
to access the eCommerce application.
Before running the app, make sure to configure the following settings:
- Razorpay : Set up your Razorpay api credentials in the appropriate Django settings file.
- Database Configuration: Update the database settings in the
settings.py
file.
Contributions are welcome! If you would like to contribute to this project, please follow these steps:
- Fork the repository.
- Create a new branch for your feature/fix:
git checkout -b feature/my-feature
- Make your changes and commit them:
git commit -m "Add new feature"
- Push the changes to your forked repository:
git push origin feature/my-feature
- Open a pull request on the original repository.
This project is licensed under the MIT License.