Skip to content

This project is an Web API Open-Source Template that includes ASP.NET Core MVC 6, Web API 6, clean n-tier architecture, Unit Testing, Integration Testing, Mssql, databases with a lot of best practices.

Notifications You must be signed in to change notification settings

SinSarak/StaffManagementApp

Repository files navigation

Logo

Staff Management


An open source and free platform to launch your own staff management

Github Documentation License

Introduction

This project is an Web API Open-Source Template that includes ASP.NET Core MVC 6, Web API 6, clean n-tier architecture, Unit Testing, Integration Testing, Mssql, databases with a lot of best practices.

Requirements

In order to run Staff Management you will need to following local development configurations and Database.

Local Development Configurations

  • IDE: Visual Studio 2022 17
  • ASP.NET Core: SDK 6.0.421
  • Mssql version: 2014+ installed with a database created
  • Required Visual Studio extensions: Microsoft RDLC Report Designer 2022 Download from Visual Studio Marketplace

Solution

Solution

Database

  1. Change the Default Connection and Test Connection.

StaffManagementApp -> appsettings.json

Database Connection String

  1. Migrate Database

Run the following commands on Package Manager Console in the Project's Directory

update-database
  1. Run

Web API

You can view endpoints with swagger Swagger API

Web App

You can navicate pages

  1. Home page Home page
  2. Staff information page Staff information page
  3. Advanced search page Advanced search page
  4. Export as Excel file Export as Excel file
  5. Export as PDF file Export as PDF file

Unit Tests

You can perform Unit Testing with In Memory Database and pre-defined data seed. Unit Tests

Integration Tests

You can perform Integration Testing with Testing Database and pre-defined data seed. Integration Tests

Technologies

  • ASP.NET Core 6 Web Api
  • ASP.NET Core MVC 6
  • xUnit Test - Unit Test
  • xUnit Test - Integration Test
  • MSSQL
  • AutoMapper
  • Swagger Open Api
  • Microsoft RDLC Report Designer 2022

Features

  • Net Core Web API 6
  • Net Core MVC 6
  • N-Tier Architecture
  • Restful
  • Entity Framework Core - Code First
  • Repository Pattern - Generic
  • UnitOfWork
  • Response Wrappers
  • Database Seeding
  • Custom Exception Handling Middlewares
  • Automapper
  • Swagger UI
  • Complete staff Management Module (Create / Edit / Delete Display / Search / Export as File)
  • Unit Test
  • Integration Test
  • .Net 6 migration
  • Mssql Operations

Purpose of this Project

This template project has been developed to ensure that I can pass the testing for senior position 😁.

Give a Star ⭐️

If you found this Implementation helpful or used it in your Projects, do give it a star. Thanks!

About the Author

Sin Sarak

About

This project is an Web API Open-Source Template that includes ASP.NET Core MVC 6, Web API 6, clean n-tier architecture, Unit Testing, Integration Testing, Mssql, databases with a lot of best practices.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published