This is a dummy e-commerce application built using Django, designed to demonstrate basic functionalities such as user authentication, product catalog management, and order processing.
- User login and registration
- Product listing and details
- Shopping cart functionality
- Order management system
- Python 3.9.2
- PostgreSQL (optional if using a different database)
-
Clone the repository:
git clone https://github.com/abdur-tech/ecommerce-GreatKart.git
python -m venv venv
source venv/bin/activate # On Windows, use venv\Scripts\activate
cd greatkart pip install -r requirements.txt
The root of the Django directory where manage.py is located, create a .env file and add the following content:
SECRET_KEY='your-secret-key' DEBUG=True
EMAIL_HOST=smtp.gmail.com EMAIL_PORT=587 EMAIL_HOST_USER='[email protected]' EMAIL_HOST_PASSWORD='your-email-password' EMAIL_USE_TLS=Yes
Use an App Password (https://support.google.com/accounts/answer/185833?hl=en) for 'EMAIL_HOST_PASSWORD' instead of normal login password
If you're using PostgreSQL, ensure it's running and create a database for the project. Update the DATABASES setting in settings.py with your credentials.
python manage.py makemigrations python manage.py migrate
python manage.py createsuperuser
python manage.py runserver
Open your browser and navigate to http://127.0.0.1:8000/ to see the application.
For demonstration purposes, the application includes dummy products with attributes such as size and color. These are provided to showcase the application's functionality and are not representative of real inventory.
If you need to add product and price, open admin console (http://localhost:8000/securelogin) with superuser credential