zangassis / easy-shop

This project contains a sample ASP.NET Core app. This app is an example of the article I produced for the Telerik Blog (telerik.com/blogs).

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

EasyShop πŸ›’

This project contains a sample ASP.NET Core app. This app is an example of the article I produced for the Telerik Blog (telerik.com/blogs).

EasyShop is an ASP.NET Core minimal API application developed using .NET 7. The application utilizes various libraries and tools, including SQLite, EF Core, AutoMapper, Serilog, and FluentValidation.

πŸš€ Getting Started

To get started with EasyShop, follow the steps below:

  1. Prerequisites

  2. Clone the Repository

    git clone https://github.com/zangassis/easy-shop
    cd easy-shop
  3. Configure the Database

    • EasyShop uses SQLite as the database.
    • The connection string is in the appsettings.json file.
  4. Install Dependencies

    dotnet restore
  5. Run Migrations

    dotnet ef database update
  6. Start the Application

    dotnet run
  7. Access EasyShop Open your web browser and visit http://localhost:PORT to access the EasyShop application.

πŸ“‚ Project Structure

The project structure of EasyShop is as follows:

β”œβ”€β”€ EasyShop
β”‚   β”œβ”€β”€ Data
β”‚   β”œβ”€β”€ logs
β”‚   β”œβ”€β”€ Migrations
β”‚   β”œβ”€β”€ Models
β”‚   β”‚  β”œβ”€β”€ Dtos
β”‚   β”‚     └── Profiles
β”‚   β”œβ”€β”€ Services
β”‚   β”œβ”€β”€ Validators
β”‚   β”œβ”€β”€ appsettings.json
β”‚   └── Program.cs
└── ...
  • Data: Contains the database context and related classes.
  • logs: Contains the logs files.
  • Migrations: Contains the database migration scripts.
  • Models: Contains the data models used in the application.
  • Dtos: Contains the DTOs used in the application.
  • Profiles: Contains the Profiles files used in the application.
  • Services: Contains the business logic services.
  • Validators: Contains the validations used in the application.
  • appsettings.json: Configuration file for the application.
  • Program.cs: Entry point of the application.

πŸ“¦ Libraries and Tools

EasyShop utilizes the following libraries and tools:

  • SQLite: Lightweight and self-contained database engine.
  • EF Core: Object-relational mapping (ORM) framework for database operations.
  • AutoMapper: Object-to-object mapping library.
  • Serilog: Logging framework for structured logging.
  • FluentValidation: Library for validating objects and properties.

Feel free to explore the codebase to learn more about the implementation details of each library.

πŸ“ License

This project is licensed under the MIT License.

Happy Shopping! πŸ›οΈ

About

This project contains a sample ASP.NET Core app. This app is an example of the article I produced for the Telerik Blog (telerik.com/blogs).

License:MIT License


Languages

Language:C# 100.0%