README.md

# AppGen

This tool generates various parts of our elixir applications to simplify our workflows.

### Generators
- [x] Absinthe API & Tests
- [x] Ecto Schema
- [x] Ecto Context, Factories & Tests
- [x] State Diff and Regeneration
- [ ] Typespecs for all files
- [ ] Phoenix Application++ (prometheus/sentry)
- [ ] State Transitions
- [ ] Logic Nodes
- [ ] Logic Gateways

## Installation

Available in Hex, the package can be installed
by adding `app_gen` to your list of dependencies in `mix.exs`:

```elixir
def deps do
  [
    {:app_gen, "~> 0.1.0"}
  ]
end
```

The docs can be found at [https://hexdocs.pm/app_gen](https://hexdocs.pm/app_gen).

## Example
Checkout `app_gen.exs` for an example

## Available Mix Commands
```
mix app_gen          # Lists help for app_gen commands
mix app_gen.api      # Utilizes all the config files and generates a GraphQL API
mix app_gen.context  # Creates a ecto context with functions from EctoShorts as well as tests
mix app_gen.resource # Used to create app_gen.exs files or to add new CRUD resources in
mix app_gen.schema   # Creates a ecto schema that has a factory
mix app_gen.phx.new  # Create a new phx project, replaces `mix phx.new`
```