{"id":26164673,"url":"https://github.com/mastermind-fa/youfashion_backend","last_synced_at":"2026-05-02T11:38:35.069Z","repository":{"id":274350652,"uuid":"922625072","full_name":"mastermind-fa/YouFashion_Backend","owner":"mastermind-fa","description":"A Django Rest Framework-based backend for user authentication, product management, cart, wishlist, and secure payments via SSLCommerz. 🚀","archived":false,"fork":false,"pushed_at":"2025-03-11T09:09:46.000Z","size":2247,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-11T10:26:24.861Z","etag":null,"topics":["django","django-rest-framework","python","sslcommerz"],"latest_commit_sha":null,"homepage":"https://you-fashion-backend.vercel.app","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mastermind-fa.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2025-01-26T17:43:12.000Z","updated_at":"2025-03-11T09:09:49.000Z","dependencies_parsed_at":"2025-03-04T07:19:15.961Z","dependency_job_id":"793c1bb6-1f44-4e5e-b583-ff7efe5f1195","html_url":"https://github.com/mastermind-fa/YouFashion_Backend","commit_stats":null,"previous_names":["mastermind-fa/youfashion_backend"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mastermind-fa%2FYouFashion_Backend","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mastermind-fa%2FYouFashion_Backend/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mastermind-fa%2FYouFashion_Backend/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mastermind-fa%2FYouFashion_Backend/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mastermind-fa","download_url":"https://codeload.github.com/mastermind-fa/YouFashion_Backend/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243060833,"owners_count":20229869,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["django","django-rest-framework","python","sslcommerz"],"created_at":"2025-03-11T15:39:14.151Z","updated_at":"2025-12-24T11:54:26.878Z","avatar_url":"https://github.com/mastermind-fa.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# YouFashion - Clothing Store Backend\n\n## Overview\n\nYouFashion is a Django Rest Framework-based backend for a clothing store. It provides essential functionalities such as user authentication, product management, cart and wishlist features, and a seamless payment experience using SSLCommerz.\n\n## Features\n\n- **User Authentication:**\n  - User registration with email confirmation.\n  - User login/logout functionality.\n- **Product Management:**\n  - Only admin users can add new products.\n  - Update or delete product quantity.\n- **Cart \u0026 Wishlist:**\n  - Users can add products to their cart.\n  - Users can add products to their wishlist.\n- **Payments:**\n  - SSLCommerz integration for secure payments.\n- **Filtering \u0026 Sorting:**\n  - Products can be filtered and sorted by price and popularity.\n\n## Technologies Used\n\n- **Backend:** Django Rest Framework\n- **Database:** PostgreSQL\n- **Authentication:** JWT Authentication\n- **Payments:** SSLCommerz\n- **Deployment:** Secure hosting platform\n\n## Installation \u0026 Setup\n\n### Prerequisites\n\nEnsure you have the following installed:\n\n- Python 3.x\n- PostgreSQL\n- Virtual Environment (optional but recommended)\n\n### Steps to Run the Project\n\n1. **Clone the Repository:**\n   ```sh\n   git clone https://github.com/mastermind-fa/YouFashion_Backend.git\n   cd YouFashion_Backend\n   ```\n2. **Create \u0026 Activate Virtual Environment:**\n   ```sh\n   python -m venv venv\n   source venv/bin/activate  # For Linux/Mac\n   venv\\Scripts\\activate  # For Windows\n   ```\n3. **Install Dependencies:**\n   ```sh\n   pip install -r requirements.txt\n   ```\n4. **Set Up Environment Variables:**\n   - Create a `.env` file in the project root directory and add the following:\n     ```sh\n     SECRET_KEY=\u003cyour-generated-secret-key\u003e\n     DB_NAME=\u003cyour-database-name\u003e\n     DB_USER=\u003cyour-database-user\u003e\n     DB_PASSWORD=\u003cyour-database-password\u003e\n     DB_HOST=\u003cyour-database-host\u003e\n     DB_PORT=\u003cyour-database-port\u003e\n     EMAIL=\u003cyour-email\u003e\n     PASSWORD=\u003cyour-email-app-password\u003e\n     SUCCESS_URL=http://127.0.0.1:8000/order.html\n     CANCEL_URL=http://127.0.0.1:8000/cart.html\n     FAIL_URL=http://127.0.0.1:8000/cart.html\n     ```\n   - To generate a new Django secret key, run:\n     ```sh\n     python -c 'from django.core.management.utils import get_random_secret_key; print(get_random_secret_key())'\n     ```\n5. **Apply Migrations:**\n   ```sh\n   python manage.py migrate\n   ```\n6. **Create a Superuser (Admin):**\n   ```sh\n   python manage.py createsuperuser\n   ```\n7. **Run the Development Server:**\n   ```sh\n   python manage.py runserver\n   ```\n\n## API Endpoints\n\n### Base URL: `http://127.0.0.1:8000/`\n\n| Endpoint                                 | Method | Description                                  |\n| ---------------------------------------- | ------ | -------------------------------------------- |\n| `/customer/list/`                        | GET    | Fetch all customers                          |\n| `/customer/login/`                       | POST   | User login (JSON format)                     |\n| `/customer/logout/`                      | POST   | User logout                                  |\n| `/customer/register/`                    | POST   | Register a new user                          |\n| `/customer/details/\u003cuserID\u003e/`            | GET    | Fetch user details                           |\n| `/products/list/`                        | GET    | Get all products, filter by price/popularity |\n| `/products/list/\u003cid\u003e/`                   | GET    | Get details of a single product              |\n| `/products/reviews/list/?productID`      | GET    | Get all reviews of a product                 |\n| `/products/reviews/`                     | POST   | Post a review                                |\n| `/order/cart/`                           | POST   | Add product to cart                          |\n| `/order/cart/`                           | GET    | Get cart data                                |\n| `/order/cart/`                           | PUT    | Update cart quantity                         |\n| `/order/cart/\u003cproductID\u003e/`               | DELETE | Remove product from cart                     |\n| `/products/wishlist/`                    | POST   | Add product to wishlist                      |\n| `/products/wishlist/`                    | GET    | Get wishlist data                            |\n| `/products/wishlist/remove/\u003cproductID\u003e/` | DELETE | Remove product from wishlist                 |\n| `/order/orders/`                         | GET    | Get previous orders of user                  |\n| `/payment/sslcommerz/`                   | POST   | Process payment with SSLCommerz              |\n\n## Contribution\n\nContributions are welcome! Feel free to fork the repo and submit a pull request.\n\n## License\n\nThis project is licensed under the MIT License.\n\n---\n\nDeveloped by **Farhana Alam**\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmastermind-fa%2Fyoufashion_backend","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmastermind-fa%2Fyoufashion_backend","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmastermind-fa%2Fyoufashion_backend/lists"}