This repository contains a web application used to manage network assets such as servers or services. It is built with ASP.NET Core 9 and uses Entity Framework Core, AutoMapper and FluentValidation. User login is validated against an LDAP directory.
- CRUD operations for network assets
- LDAP based authentication using
Novell.Directory.Ldap - MVC views styled with Bootstrap and icons
- Unit tests with MSTest, Moq and FluentAssertions
- Dockerfile and CI workflow for container builds
- .NET 9 SDK or newer
- SQL Server instance for the
NetConnectionstring inappsettings.json
Clone the repo and restore dependencies:
dotnet restore
dotnet build
dotnet run --project src/NetworkInfrastructure.WebThe application will start on http://localhost:5062 when using the included launch settings.
Execute the unit tests using:
dotnet testA Dockerfile is included. You can build and run locally:
docker build -t meysam57/networkinfrastructureweb .
docker run -d -p 80:80 meysam57/networkinfrastructurewebThe image is also published to Docker Hub and can be pulled directly:
docker pull meysam57/networkinfrastructureweb:latestDocker Hub repository: https://hub.docker.com/r/meysam57/networkinfrastructureweb
A GitHub Actions workflow builds and pushes the Docker image on every push. See .github/workflows/docker-publish.yml for details.
- @MSavameri
- @google-labs-jules
- Codex