- Overview
- Features
- Technologies Used
- Project Structure
- Installation and Setup
- Usage
- API Documentation
- Contributing
- License
- Contact
This project is an Online Shop with separate frontend and backend implementations, both developed using Django. The application provides a seamless shopping experience with modern e-commerce features.
- Register and Login with a password.
- Login with OTP (One-Time Password).
- Add items to the cart.
- Increment/Decrement item quantities in the cart.
- Remove items from the cart.
- Categorized and sub-categorized items.
- Detailed view for each product.
- Search functionality to find products quickly.
- User-friendly UI.
- Optimized for scalability and maintainability.
- Backend: Django (Django REST Framework for APIs if applicable).
- Frontend: Django Templates (or another frontend framework if specified).
- Database: SQLite/PostgreSQL (or the database you're using).
- Authentication: Django's built-in authentication and custom OTP implementation.
Follow these steps to run the project locally:
- Clone the Repository:
git clone https://github.com/your-repo-name/online-shop.git cd online-shop - Set up a virtual environment:
python -m venv venv source venv/bin/activate # On Windows use `venv\Scripts\activate`
- Install dependencies:
pip install -r requirements.txt
- Run Migrations:
python manage.py makemigrations python manage.py migrate
- Run the Development Server:
python manage.py runserver
Open your browser and navigate to http://127.0.0.1:8000.
- Register for a new account or log in using a password or OTP.
- Explore products by categories and subcategories.
- Use the search bar to find specific products.
- Add, update, or remove items in your shopping cart.
- Proceed to purchase your selected items.
Django REST Framework
- Base URL: http://127.0.0.1:8000/api/
- Example Endpoints:
GET /products/- List all products.POST /cart/add/- Add item to the cart.POST /auth/login/- Log in using credentials.
If you have any questions or feedback, feel free to contact us at alikaramouzian@icloud.com