Tutorial: Create a Template
This tutorial will walk you through creating an Intent Architect Module and two template types within for it.
What is Intent Architect?
Intent Architect is a non-prescriptive, integrated, architecture-design platform that combines the power of visual modeling, code-management, and pattern-reuse to help software development teams build enterprise-grade scalable applications at lightning speed.
What is a Module?
Modules are distributable artifacts which are the building blocks of pattern reuse in Intent Architect.
Typically, the purpose of a Module is to generate and manage a set of code files in a codebase, usually around a particular architectural pattern. This could, for example, be the entities in our domain, simple bootstrapping files, ORM mappings, controllers in our API, etc.
Modules have similarities with package systems such as NuGet, NPM, and Maven. However, where the primary objective of these systems is to facilitate code-reuse, the primary objective of Modules is to facilitate pattern-reuse.
Module Building Process
Intent Architect allows you to make your own Modules that are used in automating your architectures and patterns quite easily. To efficiently craft those Modules requires a process that is easy to follow.
Know the pattern
Know how your architecture looks like in code before you attempt to automate it. Hand-rolling at first can be useful to understand how it is supposed to look like.
Describe the design
Articulate how your current code should look like through a designer. Model it through a designer to get a feel for how you would like to describe it.
Templatize
Once you’re able to describe it and you know how it is supposed to look like in code, you can begin to create your templates that will roll out any new design changes you have described in your designers.
Prerequisites
- Ensure Intent Architect has been installed.
- The latest Microsoft Visual Studio for Windows/Mac, JetBrains Rider, or any other IDE capable of working with .NET Core projects.
Next Steps
Create a simple module
Create a Module using the Intent Module Builder with a simple Template that generates and manages a single file.