This project is a simple e-commerce website developed using Django, a high-level Python web framework. It provides functionalities for user registration/authentication, user profile management, product management, shopping cart, order processing, and more.
- User Registration & Authentication: Users can create new accounts, log in, and log out securely. Passwords are encrypted for security.
- User Profile Management: Users can update their profile information.
- Product Management: Admins can add, edit, and delete products with details such as name, description, price, and image.
- Shopping Cart: Users can add products to their cart, view the cart, update quantities, remove items, and see the total price.
- Order Processing: Users can place orders, and admins can manage and fulfill orders. Order details are securely stored in the database.
- Database Integration: Uses a relational database (SQLite) to store and retrieve user information, product data, and order details.
To install and run Fringe locally on your machine, follow these steps:
- Clone the Repository:
git clone https://github.com/atharvt17/epharma-django
- Navigate to the Directory:
cd ecom
- Install Dependencies:
pip install -r requirements.txt
- Run the Development Server:
http://localhost:8000/
- Visit the website in your browser:
http://localhost:8000
- Admin Panel:
http://localhost:8000/admin
(Use superuser credentials) - superuser credentials: User :- admin, Pass:- 1234
- For Order Management: Login with :- ordermanager, Pass:- ordermanager@123
ecom
│ db.sqlite3
│ manage.py
│
├───ecom
│ │ asgi.py
│ │ settings.py
│ │ urls.py
│ │ wsgi.py
│ │ __init__.py
│
└───pharmacy
│ admin.py
│ apps.py
│ forms.py
│ models.py
│ tests.py
│ urls.py
│ views.py
│ __init__.py
│
│
├───templates
│ Account-info.html
│ billing_address.html
│ carts.html
│ dashboard.html
│ login.html
│ orders.html
│ ordersmanager.html
│ order_confirmation.html
│ place_order.html
│ product_detail.html
│ product_page.html
│ registration.html
│ shipping_address.html
│
└───product_images
- Login Page: /
- Signup Page: /signup
- Login View: /login_view
- Registration Page: /register/
- Signup View: /signup_view
- Products Page: /products/
- Product Detail Page: /product/{product_id}/
- Shopping Cart: /carts
- Add to Cart (POST): /add_to_cart/{product_id}/
- Remove from Cart (POST): /remove_from_cart/{cart_item_id}/
- Place Order Page: /place_order/
- Order Confirmation Page: /order_confirmation/
- Orders Page: /orders/
- Update Profile: /update-profile/
- Logout: /logout/
- Account Information: /accountinfo
- Product Page: /productpage
- Dashboard: /dashboard
- Fetch Shipping Addresses (API): /fetch-shipping-addresses/
- Save Shipping Address (API): /save-shipping-address/
- Delete Shipping Address (API): /delete-shipping-address/{address_id}/
- Orders Manager Page: /ordersmanager/
- Place Order and Update (API): /place_order_and_update
- Update Order Status (API): /update-order-status/{order_id}/
- Django: Backend framework for web development.
- HTML/CSS/JavaScript: Frontend languages for building user interfaces