{"id":19620581,"url":"https://github.com/kshetritej/onebottle","last_synced_at":"2026-04-09T12:07:04.918Z","repository":{"id":258091086,"uuid":"861356783","full_name":"kshetritej/OneBottle","owner":"kshetritej","description":"yet another ecommerce with C# .NET and TypeScript","archived":false,"fork":false,"pushed_at":"2025-04-04T11:50:33.000Z","size":13378,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-04T12:31:47.423Z","etag":null,"topics":["apu","csharp","dotnet-core","ecommerce","entityframeworkcore","mssqlserver","shadcn","typescript","webandmobileapp","webapplications"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/kshetritej.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","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":"2024-09-22T17:17:22.000Z","updated_at":"2025-04-04T11:50:36.000Z","dependencies_parsed_at":"2024-12-10T19:25:57.601Z","dependency_job_id":"daba4dd7-5c39-4714-9802-eed039b756f2","html_url":"https://github.com/kshetritej/OneBottle","commit_stats":null,"previous_names":["kshetritej/onebottle"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/kshetritej/OneBottle","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kshetritej%2FOneBottle","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kshetritej%2FOneBottle/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kshetritej%2FOneBottle/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kshetritej%2FOneBottle/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kshetritej","download_url":"https://codeload.github.com/kshetritej/OneBottle/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kshetritej%2FOneBottle/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":272139282,"owners_count":24880275,"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","status":"online","status_checked_at":"2025-08-25T02:00:12.092Z","response_time":1107,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["apu","csharp","dotnet-core","ecommerce","entityframeworkcore","mssqlserver","shadcn","typescript","webandmobileapp","webapplications"],"created_at":"2024-11-11T11:19:19.649Z","updated_at":"2025-12-30T21:36:46.986Z","avatar_url":"https://github.com/kshetritej.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# One Bottle\n![image](https://github.com/user-attachments/assets/169b7d43-5bbd-40c6-b789-0997fce3c03f)\n\n## About\n\n**One Bottle** is a mobile first, web application that allows users to create and manage their own online store. It provides a user-friendly interface for managing categories, products, orders, customers and feedbacks/reviews. The application is built using .NET Core and C# in server-side, uses EF-Core for dealing with MSSQL database and React with Typescript for the front-end.\\*\n\n## Features\n\n- User authentication and authorization\n- Categories management\n- Product management\n- Order management\n- Customer management\n- Admin dashboard\n- User management\n- Feedback and feedback management\n- Shopping Cart\n- In app notification\n\n\n## Database Diagram\n\n```mermaid\nerDiagram\n    User {\n        Guid UserId PK\n        string Username\n        string Email\n        string Password\n        datetime DateOfBirth\n        boolean IsAgeVerified\n    }\n\n    UserProfile {\n        Guid ProfileId PK\n        string Username\n        string PhoneNumber\n        string Address\n        datetime DateOfBirth\n        string IdentificationType\n        int IdentificationNumber\n    }\n\n    Admin {\n        Guid AdminId PK\n        string Username\n        string Email\n        string Password\n    }\n\n    Product {\n        Guid ProductId PK\n        string Name\n        string Description\n        string Brand\n        decimal Price\n        int StockQuantity\n        string ImageUrl\n        decimal ABV\n        int Volume\n        int Rating\n        int AgeRestriction\n        datetime CreatedAt\n        datetime UpdatedAt\n        Guid CategoryId FK\n    }\n\n    Category {\n        Guid CategoryId PK\n        string Name\n        string Description\n    }\n\n    Cart {\n        Guid CartId PK\n        Guid UserId FK\n        Guid ProductId FK\n        int Quantity\n    }\n\n    Order {\n        Guid OrderId PK\n        Guid UserId FK\n        string ProductId\n        Guid ProductId1 FK\n        datetime OrderDate\n        string OrderStatus\n        decimal TotalPrice\n        string BillingAddress\n        string ShippingAddress\n    }\n\n    OrderItem {\n        Guid OrderItemId PK\n        Guid OrderId FK\n        Guid ProductId FK\n        int Quantity\n        decimal Price\n    }\n\n    Feedback {\n        Guid FeedbackId PK\n        Guid UserId FK\n        Guid ProductId FK\n        string Comment\n        int Rating\n        datetime Date\n    }\n\n    Notification {\n        Guid NotificationId PK\n        string NotificationTitle\n        string NotificationContent\n        int NotificationType\n        int NotificationContext\n        datetime NotificationDate\n        Guid UserId FK\n    }\n\n    User ||--o{ Cart : has\n    User ||--o{ Order : places\n    User ||--o{ Feedback : writes\n    Product ||--o{ Cart : contains\n    Product ||--o{ Feedback : receives\n    Product }|--|| Category : belongs_to\n    Order ||--|{ OrderItem : contains\n    Product ||--o{ OrderItem : included_in\n    Notification }o--|| User : sent_to\n```\n## Getting Started\n\nTo get started with One Bottle, follow these steps:\n\u003e[!NOTE]\n\u003eThe `Dockerfile` doesn't work.\n\n1. Clone the repository (or you can fork it then clone from your profile) :\n\n   Using https:\n\n```bash\ngit clone https://github.com/kshetritej/OneBottle.git\n```\n\nor,\nUsing ssh:\n\n```bash\ngit clone git@github.com:kshetritej/OneBottle.git\n```\n\n2. Navigate to the project directory:\n\n```bash\ncd OneBottle\n```\n\n3. Restore NuGet packages:\n```bash\ncd server; dotnet restore\n```\n\n\u003e [!TIP]\n\u003e You need to setup your database first, the `ConnectionString` is in `appsettings.json` file. Change that according to your database.\n\u003e Migrate the models with `dotnet ef migrations add InitialMigration` and then apply the migrations with `dotnet ef database update`.\n\n\n4. Build the project:\n\n```bash\ndotnet build\n```\n\n5. Run the application:\n\n```bash\ndotnet run\n```\n\n6. Setup Frontend\n\n```bash\ncd client/\n```\n\n7.Run Frontend\n\n```bash\npnpm install \u0026\u0026 pnpm dev\n```\n\u003e [!NOTE]\n\u003e For running frontend you need have have `node` installed in your system and can also use `npm` instead of `pnpm`, for using `pnpm` you will need to install it first.\n\n## UI SHOWCASE\n![image](https://github.com/user-attachments/assets/ee4c85ab-6587-4f69-8546-80cbbb4e0c25)\n\n\n## Contributing\nThis is a personal project for my college assignment of Web and Mobile Applications.\nWould I be looking further into it? Probably not. \nNo contributions will reviewed or merged! but you can always leave a star. ⭐\n\n## License\n\nThis project is licensed under the MIT License. See the [LICENSE](LICENSE) file for more information.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkshetritej%2Fonebottle","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkshetritej%2Fonebottle","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkshetritej%2Fonebottle/lists"}