{"id":15002644,"url":"https://github.com/kitepea/shelfwise-mvc","last_synced_at":"2026-01-24T14:05:35.306Z","repository":{"id":253072802,"uuid":"842098719","full_name":"kitepea/ShelfWise-MVC","owner":"kitepea","description":"BookStore Web Application 🦜 Dependency Injection Sample in C#","archived":false,"fork":false,"pushed_at":"2024-11-04T18:20:51.000Z","size":14718,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-31T03:32:06.548Z","etag":null,"topics":["asp-net-core-mvc","repository-design-pattern","sqlserver"],"latest_commit_sha":null,"homepage":"","language":"C#","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/kitepea.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":"2024-08-13T17:06:55.000Z","updated_at":"2024-11-04T18:20:55.000Z","dependencies_parsed_at":"2024-09-05T23:19:00.381Z","dependency_job_id":"52577449-cd18-47a1-97e3-6ac31b916dfe","html_url":"https://github.com/kitepea/ShelfWise-MVC","commit_stats":{"total_commits":134,"total_committers":3,"mean_commits":"44.666666666666664","dds":0.02985074626865669,"last_synced_commit":"b9339f1679f5ea59f5be415369055876cd9cbd90"},"previous_names":["kitepea/shelfwise-mvc"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kitepea%2FShelfWise-MVC","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kitepea%2FShelfWise-MVC/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kitepea%2FShelfWise-MVC/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kitepea%2FShelfWise-MVC/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kitepea","download_url":"https://codeload.github.com/kitepea/ShelfWise-MVC/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252777357,"owners_count":21802589,"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":["asp-net-core-mvc","repository-design-pattern","sqlserver"],"created_at":"2024-09-24T18:51:38.713Z","updated_at":"2026-01-24T14:05:35.293Z","avatar_url":"https://github.com/kitepea.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Shelf-Wise\n\nAn e-commerce platform designed for book sales. It provides various functionalities for different user types, including administrator, customers, employees, and company representatives.\n\n## Table of Contents\n\n1. [Tech Stack](#tech-stack)\n2. [Features](#features)\n3. [Roles](#roles)\n4. [Accounts for Tryout](#accounts-for-tryout)\n5. [Setup Instructions](#setup-instructions)\n6. [Usage and Testing](#usage-and-testing)\n7. [Deployment](#deployment)\n8. [Images](#images)\n\n---\n\n## Tech Stack\n\n### Frontend\n\n- **Bootstrap**\n- **jQuery**\n- **Toastr**: Real-time notifications and alert messages.\n- **TinyMCE**: Rich text editor for content input.\n- **DataTables**: Adds search and pagination to HTML tables.\n\n### Backend\n\n- **ASP.NET Core MVC (.NET 8)**\n- **N-Tier Architecture**\n- **Data Management Patterns**: Repository \u0026 UnitOfWork\n\n### Database\n\n- **MSSQL**: Local database for development.\n- **Azure SQL Database**: Production database in Azure.\n\n### Authentication \u0026 Authorization\n\n- **ASP.NET Core Identity**: Role-based access and user authentication.\n- **Facebook Login**: Enables social login.\n\n### Payment \u0026 Email\n\n- **Stripe**: Secure payment and refund processing.\n- **Postmark**: Transactional email sending.\n\n### Hosting\n\n- **Azure**: Production hosting environment.\n\n### Additional Libraries \u0026 Tools\n\n- **Identity Scaffolding**: Razor Class Library for user authentication.\n- **State Management**: TempData and ViewData for sharing data between views.\n- **View Components**: Dynamic content rendering with ASP.NET Core View Components.\n\n## Features\n\nShelf-Wise offers various features for users and admins:\n\n- **User Management**: Create, manage, and assign roles to users. Manage companies information ( for company accounts ).\n- **Product Management**: Add, edit book details, and manage books categories.\n- **Authentication**: Login/Register via email/password or Facebook.\n- **Stripe Integration**: Secure payments and refund processing.\n\n## Roles\n\nShelf-Wise defines four distinct user roles with specific permissions:\n\n1. **Role_Customer**: Standard customer with purchase access.\n2. **Role_Admin**: Access to order and content management (categories, products, companies, users).\n3. **Role_Company**: Similar to customers but with NET 30 payment terms for companies.\n4. **Role_Employee**: Supports order management alongside admins.\n\n## Accounts for Tryout\n\nHere are test accounts for trying out the platform:\n\n| Role     | Email              | Password |\n| -------- | ------------------ | -------- |\n| Company  | company@gmail.com  | P@ssw0rd |\n| Employee | employee@gmail.com | P@ssw0rd |\n| Customer | customer@gmail.com | P@ssw0rd |\n\n## Setup Instructions\n\nFollow these steps to set up Shelf-Wise on your local machine:\n\n### 1. Clone the Repository\n\n```bash\ngit clone https://github.com/kitepea/ShelfWise-MVC.git\ncd ShelfWise-MVC\n```\n\n### 2. Configure App Settings\n\nFill in the required fields in `appsettings.json`:\n\n```json\n{\n  \"Logging\": {\n    \"LogLevel\": {\n      \"Default\": \"Information\",\n      \"Microsoft.AspNetCore\": \"Warning\"\n    }\n  },\n  \"AllowedHosts\": \"*\",\n  \"ConnectionStrings\": {\n    \"DefaultConnection\": \"Connection_String\"\n  },\n  \"Stripe\": {\n    \"SecretKey\": \"Stripe_SecretKey\",\n    \"PublishableKey\": \"Stripe_PublishableKey\"\n  },\n  \"Facebook\": {\n    \"AppId\": \"Facebook_AppId\",\n    \"AppSecret\": \"Facebook_AppSecret\"\n  },\n  \"PostMark\": {\n    \"ServerApiToken\": \"PostMark_Token\"\n  }\n}\n```\n\n### 3. Install Dependencies\n\nRun the following command to install necessary NuGet packages:\n\n```bash\ndotnet restore\n```\n\n### 4. Build the Solution\n\nBuild the application using the .NET CLI:\n\n```bash\ndotnet build\n```\n\n### 5. Update Database\n\nTo apply migrations and create the database schema:\n\n```bash\ndotnet ef database update\n```\n\n### 6. Run the Application\n\nLaunch the application locally:\n\n```bash\ndotnet run\n```\n\n---\n\n## Deployment\n\nThe Shelf-Wise application has been successfully deployed. You can access it using the following link (_sometimes I shut down the app service due to depleted SQL database resources_ :)):\n\nhttps://shelfwise-e0g3fdfxhsb8brae.southeastasia-01.azurewebsites.net/\n\n## Images\n\n| ![Image 1](images/image.png)     | ![Image 2](images/image-1.png)   | ![Image 3](images/image-2.png)   |\n| -------------------------------- | -------------------------------- | -------------------------------- |\n| ![Image 4](images/image-3.png)   | ![Image 5](images/image-10.png)  | ![Image 6](images/image-4.png)   |\n| ![Image 7](images/image-5.png)   | ![alt text](images/image-13.png) | ![Image 8](images/image-6.png)   |\n| ![Image 9](images/image-7.png)   | ![Image 10](images/image-8.png)  | ![Image 11](images/image-9.png)  |\n| ![Image 12](images/image-11.png) | ![Image 13](images/image-12.png) | ![Image 14](images/image-14.png) |\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkitepea%2Fshelfwise-mvc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkitepea%2Fshelfwise-mvc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkitepea%2Fshelfwise-mvc/lists"}