Skip to content

Lawniet/VirtualStoreApi

Repository files navigation

Virtual Store

Codacy Badge GitHub license

Description

Virtual Store Management for users (after authentication,) can register, change, delete or search for Stores, Products and stocks.

🚀 API project

API architecture

API architecture

SQL scheme

SQL Schema

Class diagram

Class diagram

See more in Figma

🚀 Technologies and Principles

  • ✔️ .NET >= 5.0;
  • ✔️ In-Memory DB;
  • ✔️ MVC;
  • ✔️ SOLID;
  • ✔️ Clean Code;
  • ✔️ Inheritance and Polymorphism;
  • ✔️ Entity Framework;
  • ✔️ TDD;
  • ✔️ DTOs.

ℹ️ How to start

Pre Requisites

Before starting the project, you will need the following tools:

Execution

How to run the project locally:

1. Open code's folder in VSCode;
2. Run the project in debug mode with IIS Express;
3. The application's Swagger will open;
4. API is protected by JWT token. The only endpoint released is the JWT. Run it and copy the generated token;
5. Click the authentication button (a padlock at the top of the swagger page);
6. In the required field, write Bearer + generated token. This will allow access to the endpoints.

Projects

  • VirtualStoreApi - API Project, where contains the controllers, mappers, JWT config and enum.
  • Application - The application layer, where it contains the interfaces of services, validators and utils profiles.
  • Domain - Domain layer, where it contains the models, interfaces and DTO's.
  • Infrastructure - Data layer, where it contains the Context (the class where we configure the SQLlite), mappings, repositories.
  • Tests - TDD layer, where it contains tests and mocks for API, repositories and Application layer.

🌱 About developer

Lauany Reis da Silva:

More info

Tutorial: criar uma API Web com o ASP.NET Core

C# de teste de unidade no .NET Core usando dotnet test e xUnit

Tutorial: criar uma API Web com o ASP.NET Core

Releases

No releases published

Packages

No packages published

Languages