Skip to content

Web app made with ASP.NET, FluentAPI, ONION Architecture and SQL Server.

License

Notifications You must be signed in to change notification settings

anibalventura/e-market-web

Repository files navigation

E-Market

.NET Core License

Web app made with ASP.NET, FluentAPI, ONION Architecture and SQL Server.

Features

  • Data persistence with SQL Server.
  • Login, register and logout a user.
  • Home page to see all users advertisements, except of logged user.
  • Click to see all info of a publication and images (up to 4) in carousel style.
  • Filter advertisements in home page by name and category.
  • Advertisements and Category maintenance pages to perform CRUD operations.
  • Logged user can only edit his advertisements.
  • See how many active advertisements have a category with how many users.
  • Form validations.
  • Delete confirmations.

Technologies

Architecture

Onion Architecture provide a better way to build applications in perspective of better testability, maintainability, and dependability. Onion Architecture addresses the challenges faced with 3-tier and n-tier architectures, and to provide a solution for common problems.

Dependencies

Build

  1. Create a SQL Server database.

  2. Open solution in Visual Studio and edit the ConnectionStrings section on appsettings.json in WebApp layer.

"ConnectionStrings": {
    "DefaultConnection": "Server=localhost,PortNumber;Database=DatabaseName;User=DatabaseUser;Password=DatabasePassword;Trusted_Connection=false;MultipleActiveResultSets=true"
  }
  1. Run migrations.
  • On Windows: Open Package Console and run:
Add-Migration Initial
Update-Database
dotnet ef --startup-project ./WebApp/EMarket/ migrations add Initial
dotnet ef --startup-project ./WebApp/EMarket/ database update
  1. Run the project.

License

MIT License

Copyright (c) 2022 Anibal Ventura