-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
2934681
commit 59d6dec
Showing
33 changed files
with
85 additions
and
63 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,7 @@ | ||
--- | ||
sidebar_position: 2 | ||
--- | ||
|
||
# F.A.Q. | ||
|
||
## Is Anvil ready to use right out the box? | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
{ | ||
"label": "Generators", | ||
"position": 4, | ||
"link": { | ||
"type": "generated-index", | ||
"description": "How to develop generators" | ||
} | ||
} | ||
"label": "Generators", | ||
"position": 20, | ||
"link": { | ||
"type": "generated-index", | ||
"description": "How to develop generators" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
--- | ||
sidebar_position: 3 | ||
--- | ||
|
||
## How it work | ||
|
||
Anvil has 5 main parts, each one responsible for a specific complementary role. | ||
|
||
### `*.anv` files | ||
|
||
The schema definition is a `.anv` file that describes a domain of your service. Each project (micro-service) can have multiple domains in it, and they can be related or not (ideally, if they are in the same project, they should be). | ||
|
||
Think about the `.anv` files like a `schema.prisma` or an OpenApi spec, and from this we generate an infinity of things. | ||
|
||
### `.anvilconfig` | ||
|
||
`.anvilconfig` is the configuration file for Anvil, where you put information like the plugins that you are using, the things that you want to generate, and any other configuration that Anvil CLI or the plugins may need. | ||
|
||
It is written in [TOML](https://toml.io/en/). | ||
|
||
### CLI | ||
|
||
The CLI is the way that you interact with all Anvil things. You can use it to validate your files, generate things, install plugins, run your migrations, and much more. | ||
|
||
It's designed to work with CI/CD too 🙌 | ||
|
||
### Generators | ||
|
||
Generators allows you to generate code based on a `.anv` config. They come in various shapes and sizes, and can be used for practically anything: | ||
- Generate an microservice with a specific code pattern, that uses a specific set of libraries | ||
- Generate e2e tests | ||
- Generate changelogs | ||
|
||
Generator are were the magic oh Anvil happens. | ||
|
||
### Plugins | ||
|
||
Plugins do side-effects with Anvil, like: | ||
- Create tasks in Jira based on the changes of the schema. | ||
- Notify breaking changes to dependent projects | ||
|
||
Very useful for Agile environments. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
{ | ||
"label": "Plugins", | ||
"position": 3, | ||
"link": { | ||
"type": "generated-index", | ||
"description": "How to develop plugins" | ||
} | ||
} | ||
"label": "Plugins", | ||
"position": 30, | ||
"link": { | ||
"type": "generated-index", | ||
"description": "How to develop plugins" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,7 @@ | ||
--- | ||
sidebar_position: 4 | ||
--- | ||
|
||
# Roadmap | ||
|
||
## Critical features | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
--- | ||
sidebar_position: 2 | ||
sidebar_position: 10 | ||
--- | ||
|
||
# Schema | ||
|