Welcome to our Django Ecommerce Site! This README document will guide you through the setup and usage of our project.
To install and run our Django Ecommerce Site, follow these steps:
- Clone the repository to your local machine:
git clone https://github.com/manish021124/ecommerce_django.git
- Navigate to the project directory:
cd ecommerce_django
- Create a virtual environment:
python -m venv venv
- Activate the virtual environment:
- On Windows:
venv\Scripts\activate
- On macOS and Linux:
source venv/bin/activate
- Install dependencies:
pip install -r requirements.txt
- Perform database migrations:
python manage.py migrate
- Create a superuser (admin account) for the Django admin interface:
python manage.py createsuperuser
- Start the development server:
python manage.py runserver
- Open your web browser and navigte to 'http://localhost:8000' to access the site.
- Create a project in Google Developer Console
- Go to the Google Developer Console.
- Create a new project or select an existing one.
- Enable the Google OAuth2 API for your project.
- Create a .env file
- Create a file named '.env' in your project directory if it doesn't already exist.
- Add your Google OAuth2 client ID and client secret as envrionment variables in the '.env' file.
GOOGLE_OAUTH2_CLIENT_ID="your_client_id"
GOOGLE_OAUTH2_CLIENT_SECRET="your_client_secret"
-
Activate the virtual environment and install dependencies
-
Start the development server
By following these steps, you'll have set up Google OAuth2 authentication for your Django project. Users can now authenticate using their Google accounts when accessing your application.
You can use the following test credentials to log in to eSewa for testing purposes:
- eSewa ID: 9806800001/2/3/4/5
- Password: Nepal@123
- MPIN: 1122 (for application only)
- Token: 123456
Our Django Ecommerce Site provides the following functionalites:
- User Authentication: Users can sign up, log in and log out as both customer and store owners.
- Social Authentication: Users can sign up, log in and log out as customer using Google authentication.
- Product Management: Store owners can add, edit and delete products, managin their inventory efficiently.
- Product Search: Users can search for products by entering search queries into the serach form.
- Shopping Cart: Users can add products to their shopping cart, review their selections, and proceed to checkout seamlessly.
- Order Management: Both store owners and customers can manage orders, view order details and easily cancel orders if necessary.
- Payment Gateway Integration: Seamlessly integrate the popular payment gateway eSewa to facilitate secure online transactions.
- Ratings and Reviews: Users can provide ratings and write reviews for products they have purchased.
You can watch video demonstration of this site here.
Updates not available in Video Demonstration
- Product Page Updation
- Ratings and Reviews
If you have any questions or suggestions regarding our Django Ecommerce Site, feel free to contact us at [email protected].
Frontend: https://manish021124.github.io/gyapu-e-commerce_site/