abhi790 / EmpManagement

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

EmployeeManagement CRUD Web App

This is fully functional CRUD web application.This web application is built on Dotnet Core 6 MVC using Entity Framework Core to make connection with MySQL Server for its CRUD functionality.

Software Required

  • 1)Visual Studio Code
  • 2)Dotnet SDK 6
  • 3)Entity Framework Core
    dotnet tool install --global dotnet-ef

Tech Stack

Database: MySQL Server and Entity Framwork Core

BackEnd and FrontEnd: Dotnet Core MVC(Model,View and Controller)

Run Locally

Clone the project

  git clone https://github.com/abhi790/EmpManagement.git

Go to the project directory

  cd EmpManagement

Create appsettings.json

  touch appsettings.json

Add code inside appsettings.json, modify username and password with your MySql credentials in connection string

    {
  "Logging": {
    "LogLevel": {
      "Default": "Information",
      "Microsoft.AspNetCore": "Warning"
    }
  },
  "ConnectionStrings": {
    "mySqlConn":"server=localhost; port=3306; database=EmployeeDB; user=<username>; password=<yourPass>; Persist Security Info=False; Connect Timeout=300"
    
  },
  "AllowedHosts": "*"
}

Now run

  dotnet restore
  dotnet build

Now Add Migration command

  dotnet ef migrations add Initial_migration  //to add migrations
  dotnet ef database update  		   // to update the database

Finally run and open metion port number to see app working. Enjoy.

  dotnet run

Screenshot Of Web Application

List All Employees

List Employees

Create An Employee

Create Employee

Edit An Employee

Edit

About


Languages

Language:C# 48.6%Language:HTML 32.4%Language:CSS 18.1%Language:JavaScript 1.0%