Volver al ranking

pdevito3/craftsman

C#wrapt.dev

A .NET scaffolding tool to help you stop worrying about boilerplate and focus on your business logic 🚀

web-apidotnet-corescaffoldingtemplate-enginecsharpclicraftsmancli-commandsvertical-slice-architecturedockerautomated-testingautomated-test-generation
Crecimiento de estrellas
Estrellas
1.2k
Forks
73
Crecimiento semanal
Issues
8
5001k
ago 2020jul 2022jul 2024jul 2026
README

Craftsman Scaffolds Your Boilerplate!

Craftsman is the workhorse behind the Wrapt framework and provides a suite of CLI commands for quickly scaffolding out new files and projects for your .NET Web APIs with simple CLI commands and configuration files.

Latest Release License


Quickstart

  • Make sure you have the .NET 8 SDK installed, along with EF Core
  • Install the craftsman tool
dotnet tool install -g craftsman
  • Spin up an example project
craftsman new example MyFirstProject

Documentation

For all the documentation on how to use Craftsman, visit wrapt.dev.

Upcoming Features

You can find some highlights below. I have some reminement items in the pipe and I'm working through a deep example project the really dogfood things and will be making updates around my finding from there.

Have a request for something you don't see in the project? Join our discord and let's talk about it!

Some 0.26 highlights

✅ Primary Constructors

✅ Updated API Versioning

Some 0.25 highlights

✅ .NET 8 scaffolding

✅ Archicture test enhancement

✅ Remove obsolete BFF commands

✅ Fix test actions

Some 0.24 highlights

✅ Logging enhancements and masking

✅ Dependabot and Github Actions for tests

string[] support for Postgres

✅ Value Object property scaffolding

Some 0.23 highlights

✅ Moq -> NSub

✅ New GetAll feature

✅ Hangfire scaffolding

Some 0.22 highlights

✅ Move from Sieve to QueryKit

✅ TestContainers updated

✅ Records for queries and commands and DTOs

✅ Relationships overhaul

Some 0.21 highlights

✅ New default error handler middleware (existing still optional)

✅ Mapster -> Mapperly

Some 0.20 highlights

✅ Intermediate model to not pass DTOs to domain

✅ Specification support

Some 0.19 highlights

✅ Test projects updated to use XUnit

✅ .NET 7

✅ Integration tests have better service collection scoping and now have a service collection per test. This makes service mocking possible without clashing with other tests

✅ Options Pattern Configuration

Some 0.18 highlights

✅ Environment Service

✅ Built in Migrations

✅ Various testing and other improvements

Some 0.17 highlights

✅ Users and Roles managed in each boundary (AuthN still separate)

✅ New Email Value Object

✅ Functional Tests use Docker DB and has other cleanup items

✅ NextJS template (still a WIP and not documented, but you can find the sandbox for things here and poke through the Craftsman code if you'd like. Can answer questions in out Discord as well.)

Some v0.16 highlights

✅ Testing Optimizations

✅ Common Value Object Scaffolding

✅ Auth Server rewrite with Keycloak

✅ Move permission guards to feature

✅ Migrate Automapper to Mapster

Some v0.15 highlights

✅ Updated CLI command structure

✅ OpenTelemetry & Jaeger Tracing

✅ Built in Domain Event support (with unit test scaffolding)

✅ Moved to Program.cs only format

✅ Added repository & unit of work abstractions for better testing and validation

✅ SmartEnum property scaffolding support

Some v0.14 highlights

✅ Duende BFF scaffolding

✅ React scaffolding

✅ Dockerfile and Docker Compose scaffolding

Some v0.13 highlights

✅ DDD promoted entities (private setters, factory methods, associated fakers)

✅ Huge permissions upgrade. Significantly simplified setup which resulted in a new library (HeimGuard) that can be used in any .NET project.

✅ New register:producer command

✅ Added soft delete capability

✅ Added Shared Kernel

Some v0.12 highlights

✅ .NET 6 Scaffolding

✅ Docker utility updates for integration tests using Fluent Docker 🐳

add:feature enhancement to add more than just ad-hoc features

new:example command to generate example projects with associated templates

✅ Auth Server Scaffolding (In-Memory)

✅ Auditable entities

Support

If Wrapt and Craftsman are saving you time and helping your projects, consider sponsoring me on Github to support ongoing Wrapt development and make it even better!

Contributing

Time is of the essence. Before developing a Pull Request I recommend opening a new topic for discussion. I also haven't had enough PR interest to take the time and put together a contributing.md, but if you are interested, I will definitely put together a detailed writeup.

Contact Me

Sometimes Github notifications get lost in the shuffle. If you file an issue and don't hear from me in 24-48 hours feel free to ping me on twitter or Discord (pdevito3#4244). We also have own discord channel now for easy contact with me and larger community discussions!

Repositorios relacionados
jasontaylordev/CleanArchitecture

Clean Architecture Solution Template for ASP.NET Core

C#MIT Licenseclean-architecturetemplate
cleanarchitecture.jasontaylor.dev
20.3k4.2k
FastEndpoints/FastEndpoints

A light-weight REST API development framework for ASP.NET 8 and newer.

C#MIT Licenseweb-apivertical-slice-architecture
fast-endpoints.com
6k385
dunglas/mercure

🪽 An open, easy, fast, reliable and battery-efficient solution for real-time communications

GoGo ModulesGNU Affero General Public License v3.0apiweb-api
mercure.rocks
5.3k344
ardalis/ApiEndpoints

A project for supporting API Endpoints in ASP.NET Core web applications.

C#MIT Licenseapiasp-net-core
3.2k232
immersive-web/webxr

Repository for the WebXR Device API Specification.

BikeshedOthervirtual-realityaugmented-reality
immersive-web.github.io/webxr/
3.1k424
OWASP/API-Security

OWASP API Security Project

DockerfileOtherapisecurity
owasp.org/www-project-api-security/
2.3k408
slackapi/bolt-python

A framework to build Slack apps using Python

PythonPyPIMIT Licenseslackslack-api
docs.slack.dev/tools/bolt-python/
1.3k289
EdwinVW/pitstop

This repo contains a sample application based on a Garage Management System for Pitstop - a fictitious garage. The primary goal of this sample is to demonstrate several software-architecture concepts like: Microservices, CQRS, Event Sourcing, Domain Driven Design (DDD), Eventual Consistency.

JavaScriptnpmApache License 2.0microservices-architecturecqrs
1.2k489
childrentime/reactuse

115+ production-ready React Hooks for sensors, UI, state & browser APIs. Tree-shakable, SSR-safe, TypeScript-first. Used by Shopee, PDD & Ctrip. Inspired by VueUse.

MDXThe Unlicensereactreacthooks
reactuse.com
1k139
manosim/django-rest-framework-docs

Document Web APIs made with Django Rest Framework

PythonPyPIdjangodjango-rest-framework
drfdocs.com
647184