- Download the file docker-compose.yml
- Download the folder InitDB
- In the console, write docker-compose up -d and press Enter
- In the browser write http://localhost:5000/swagger and press Enter
Open the project and select Persistence layer as Startup Project
- Open Tools > NuGet Package Manager > Package Manager Console
- In Default Project, select Persistence
- Write Update-Database, then press Enter
- Select WebApi layer as Startup Project, then run the project.
- In the browser write http://localhost:5000/swagger and press Enter
Open SQL Server
- Select ManageEmployees
- Open new query
- Run this query
USE ManageEmployees;
GO
IF NOT EXISTS(SELECT * FROM Employee)
BEGIN
INSERT INTO Employee
VALUES
('Alan', 'Rios', '47544850', null, 1, GETDATE(), null, null)
,('Juan', 'Perez', '12345678', null, 1, GETDATE(), null, null)
END
GO
IF NOT EXISTS(SELECT * FROM PermissionType)
BEGIN
INSERT INTO PermissionType
VALUES
('Super Administrador')
,('Administrador')
,('Gestor')
,('Consultor')
,('Secretaria')
END