This is a .NET application that I wrote after watching Jimmy Bogard's talk on vertical slice architecture as a way of understanding what it might look like in practice.
- Ensure you have the .NET 6 SDK installed
- Clone the repository like
git clone https://github.com/un1r8okq/Autowriter.git
- Open your favourite terminal in the cloned repository
- Ensure you are in the Autowriter.UI directory
- Run
dotnet run
to download dependencies, build the project, and run the kestrel web server. The app should open in your default browser automatically
- Upload source material (text)
- Generate new text from your source material
- Register with an email and password
- Authenticate with email and password
Autowriter.UI __________ _______
| Register | | Login |
|__________| |_______|
________________________ ___________ __________
| Upload Source Material | | View S.M. | | Generate |
|________________________| |___________| |__________|
|_____________ |___________ |_____________
Autowriter.Core | | | | | |
V V V V V V
_____________ __________ __________ _____________ ____________ __________
| Create S.M. | | Get S.Ms | | Get S.M. | | Delete S.M. | | Count S.M. | | Generate |
|_____________| |__________| |__________| |_____________| |____________| |__________|
| | | | | |
Autowriter.Data | |__________|___________ | ______________ | _______________|
V V V V
___________ ________ ___________ __________
| ICreateSM | | IGetSM | | IDeleteSM | | ICountSM |
|___________| |________| |___________| |__________|
This is an ASP.NET Core 6 Razor Pages application that acts as a basic UI over my application. It handles authentication of users and presentation of the functionality.
This is a collection of tests for Autowriter.UI. It is made up of:
These use xUnit to validate the AutoMapper configuration. There isn't any domain logic in this project to test, only presentation code (which is very brittle).
These use an in memory test server to check that everything is talking. Things like
- Testing that dependency injection works
- Testing Routing
This is the domain logic layer for the application.
These use xUnit to test the core domain and storage logic of the application.
This layer provides interfaces and implementation for data access.
This contains performance tests for Autowriter written in K6.
- Install K6
- From the repository root, start Autowriter like
dotnet run --project Autowriter.UI/Autowriter.UI.csproj
- Run the tests like
k6 run Autowriter.Performance.Tests/index.js