Thanks to visit codestin.com
Credit goes to github.com

Skip to content

marcin-niewczas/MyShop-API

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

68 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

myShop API



Table of Contents

  1. About The Project
  2. Related Projects
  3. Getting Started
  4. Launch myShop Projects
  5. Authenticate
  6. License

About The Project

The main goal of myShop API project was to create a flexible E-Commerce API platform, that can be easily managed. The project has been built as Clean Architecture REST API and developed with CQRS (Command Query Responsibility Segregation), Unit Of Work and Event Driven Architecture Patterns.

Clients

Features

  • For the entire platform
    • Real time notifications with SignalR,
    • User Roles
      • Guest
      • Customer
      • Employee
        • Seller
        • Manager
        • Admin
        • SuperAdmin
    • Message broker (Channel or RabbitMQ)
      • CRON Jobs,
      • Async Background Tasks (e.g. Payment Processing with myShop Pay )
  • E-Commerce
    • Customized Home Page
    • Products List
      • Advanced Filtering (by Variant Options, Detail Options, Price)
      • Advanced Sorting (e.g. Top Rated, Bestsellers, Most Reviewed Products)
      • Group Products By All Variant Options or Main Variant Option
    • Product Detail (Single or Product Variants)
    • Product Reviews
    • Favorites
    • Quick Add Product
    • Shopping Basket
    • Ordering Wizard
    • Create Order by Guest
  • Management Panel
    • Dashboard
    • E-Commerce Home Page Management
    • Categories Management
    • Product Options Management
    • Product, Product Reviews, Product Variants, Product Photos Management
    • Orders Management
  • Account
    • Basic Account Information Management
    • User Addresses Management
    • User Orders Management (generating invoices in PDF format)
    • Notifications List
    • Favorite Products Management
    • Account Security Management
  • Authenticates
    • JWT Authenticates with Refresh Tokens
    • Possibility of sessions on various devices
    • Sign In
    • Sign Up

Built with

  • .NET 9
  • ASP.NET Core Web API
  • ASP.NET Core Authentication JWT Bearer
  • Entity Framework Core (MS SQL)
  • ASP.NET Core SignalR
  • Swagger
  • Quartz.NET
  • Humanizer
  • MassTransit (RabbitMQ)
  • MigraDoc

Related Projects

Getting Started

Important

For fully functionality, the myShop API project must have related projects running.

Full instruction for starting myShop projects is here.

  1. Clone repository
    git clone https://github.com/marcin-niewczas/MyShop-API.git  
  2. Database and message broker
    • If you wanna use RabbitMQ, go to appsettings.json and set UseRabbitMQ to true (MessagingOptions section) and uncomment RabbitMQ image in docker-compose.yml
    • Run Docker App
    • In root directory of repository run
      docker-compose up -d
  3. In root directory of repository run
    dotnet run --project ./src/MyShop.API/MyShop.API.csproj --launch-profile MyShop.HTTPS.Development

Launch myShop Projects

1. Clone repositories

git clone https://github.com/marcin-niewczas/MyShop-API.git
git clone https://github.com/marcin-niewczas/MyShop-Angular-Client.git
git clone https://github.com/marcin-niewczas/MyShop-Pay.git

2. myShop API

  1. Go to root folder of myShop API repository
  2. Database and message broker
    • If you wanna use RabbitMQ, go to appsettings.json and set UseRabbitMQ to true (MessagingOptions section) and uncomment RabbitMQ image in docker-compose.yml
    • Run Docker App
    • In root directory of repository run
      docker-compose up -d
  3. In root directory of repository run
    dotnet run --project ./src/MyShop.API/MyShop.API.csproj --launch-profile MyShop.HTTPS.Development

3. myShop Angular Client

  1. Go to root folder of myShop Angular Client repository
  2. In root folder of repository install NPM packages
    npm install
  3. Run application
    ng serve

4. myShop Pay

  1. Go to root folder of myShop Pay repository
  2. Database
    • In root directory of repository run
      docker-compose up -d
  3. In root directory of repository run
    dotnet run --project ./MyShopPay/MyShopPay.csproj --launch-profile https

Authenticate

Email Password
[email protected] myShopProject1#
[email protected] myShopProject1#
[email protected] myShopProject1#
[email protected] myShopProject1#
[email protected] myShopProject1#
[email protected] myShopProject1#

License

Distributed under the MIT License. See LICENSE for more information.