ZeroSlope is a .net6 lean micro-service project using MinimalApi with adoption and simplicity in mind. This project is meant to provide a simple and lean architecture using common industry technologies and practices. All dependencies are constructed and stored in a IoC container following the Composition Root pattern. API Documentation is auto-generated using a Swagger front-end.
This implementation focuses on a Sql Server back-end using Dapper.
- .Net 6
- Sql Server 2012-2019, Azure Sql PaaS, PostgresSQL
- Docker (Optional)
- Redis Cache (Optional)
- Global Error Handling
- Authentication
- Authorization
- Composition Root IoC
- Dapper + Contrib Micro-ORM
- Redis Caching
Coming soon.
├─── 📁 Documentation
│
├─── 📁 Infrastructure
│ ├─── #️ ZeroSlope.Composition
│ └─── #️ ZeroSlope.Infrastructure
│
├─── 📁 Testing
│ ├─── #️ ZeroSlope.Api.Tests
│ └─── #️ ZeroSlope.Domain.Tests
│
├─── 🗃️ ZeroSlope.Database
│ ├─── 📁 Scripts
│ └─── 📁 Schemas
│
├─── #️ ZeroSlope.Models
│ └─── 📁 Authentication
│ ├─── 📁 Requests
│ └─── 📁 Responses
│
├─── #️ ZeroSlope.Domain
│ ├─── 📁 Base
│ ├─── 📁 Entities
│ ├─── 📁 Mappers
│ └─── 📁 Services
│
└─── #️ ZeroSlope.Api
├─── 📁 Middleware
├─── 📁 Routes
├─── 📄 appsettings.json
├─── 📄 Dockerfile
├─── 📄 Program.cs
└─── 📄 Usings.cs
- Windows
- Open Visual studio, and click the
Play
button.
- Open Visual studio, and click the
- Unix / MacOSX
- Open bash in the root of the solution, and use the command
dotnet restore
and thendotnet run
- Open bash in the root of the solution, and use the command
Simply run the following ...
docker run
-d --name zeroslope-db
--env "ACCEPT_EULA=Y"
--env "MSSQL_SA_PASSWORD=P4ssw0rd!"
--env "SA_PASSWORD=P4ssw0rd!"
--env "MSSQL_PID=Developer"
-p 1401:1433
-d mcr.microsoft.com/mssql/server:2019-latest
Simply run the following ...
docker run
-d --name zeroslope-redis
-p 6379:6379
-d redis
Coming soon.
Coming soon.
Coming soon.
Coming soon.