Skip to content

ct0rm4n/CleanArch-Commerce

Repository files navigation

CleanArch Commerce - Sample

This is an e-commerce project developed with Blazor and .NET 8. The project includes a catalog API, an API gateway using Ocelot, and a Blazor WebAssembly client application.

Fast Architecture: image

Roadmap

  • Net. 8
  • API Gateway - Ocelot
  • ORM - Dapper
  • RabbitMQ
  • Authentication
  • Payment - OpenPix
  • Authorization ACL
  • CQRS Patern Generic
  • Webhook Client
  • Multi-language Support
    • Chinese
    • Spanish
    • English

Requirements

To run this project, you will need to have the following software installed:

Environment Setup

  1. Clone the repository: git clone https://github.com/ct0rm4n/FastCommerce.git cd fastcommerce

  2. Ensure Docker is running: Verify that Docker is installed and running on your system. You can check this by running the following command: docker --version

  3. Build and start the Docker containers: Navigate to the root directory of the project and run the command below to build and start the Docker containers: docker-compose up This command will build the necessary Docker images and start the containers defined in the docker-compose.yml file.

Project Structure

  • Api.Ocelot: API gateway using Ocelot.
  • FastCommerce.Api.Catalog: Catalog API for managing products and categories.
  • UI: Blazor WebAssembly client application.

Accessing the Application

After running the docker compose up command, you can access the application at the following URLs:

SQL Scripts

The project includes an SQL script (CreateDatabase.sql) to create the database and necessary tables. This script is automatically executed when the catalog API starts, ensuring the database is properly configured.

Contribution

If you would like to contribute to this project, feel free to open a pull request or report issues in the repository.

License

This project is licensed under the MIT License.