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