Welcome to the Django E-commerce project! This repository contains a fully functional online store built using Django for the backend and modern web technologies for the frontend.
- User Authentication: Register, log in, and manage accounts.
- Admin Panel: Fully customizable admin panel for managing products, orders, and users.
- Product Management: Add, edit, and delete products with categories.
- Shopping Cart: Seamlessly add, update, and remove items from the cart.
- Order Processing: Place orders and manage order history.
- Responsive Design: Optimized for all devices with a clean UI.
The backend of this project is powered by:
- Django: A high-level Python web framework.
The frontend leverages:
- HTML
- CSS
- Bootstrap
- JavaScript
Follow these steps to set up the project on your local machine:
First, clone this repository to your local system using the following command:
git clone git@github.com:rezamardaniDev/PetHome.git
Navigate to the project directory and create a virtual environment to isolate project dependencies:
python -m venv venv
Activate the virtual environment:
-
On Windows:
venv\Scripts\activate
-
On macOS/Linux:
source venv/bin/activate
Install all required Python packages using pip
:
pip install -r requirements.txt
Set up the database by running the migrations:
python manage.py migrate
Start the Django development server:
python manage.py runserver
The application will be available at:
http://127.0.0.1:8000/
To log in to the admin panel, use the default credentials:
- Username:
admin
- Password:
admin
The admin panel is accessible at:
http://127.0.0.1:8000/admin/
Below is an overview of the project's structure:
PetHome/
├── manage.py
├── requirements.txt
├── db.sqlite3
├── app_name/ # Main application folder
│ ├── migrations/
│ ├── static/
│ ├── templates/
│ ├── views.py
│ ├── models.py
│ └── urls.py
└── ...
Contributions are welcome! To contribute:
- Fork the repository.
- Create a new branch:
git checkout -b feature-branch-name
. - Commit your changes:
git commit -m 'Add some feature'
. - Push to the branch:
git push origin feature-branch-name
. - Open a pull request.
This project is licensed under the MIT License. See the LICENSE file for details.
If you have any questions or feedback, feel free to reach out:
- GitHub: rezamardaniDev
Thank you for checking out this project! Happy coding! 🎉