phx_new v1.5.7 mix phx.new.ecto View Source

Creates a new Ecto project within an umbrella project.

This task is intended to create a bare Ecto project without web integration, which serves as a core application of your domain for web applications and your greater umbrella platform to integrate with.

It expects the name of the project as an argument.

$ cd my_umbrella/apps
$ mix phx.new.ecto APP [--module MODULE] [--app APP]

A project at the given APP directory will be created. The application name and module name will be retrieved from the application name, unless --module or --app is given.

Options

Examples

mix phx.new.ecto hello_ecto

Is equivalent to:

mix phx.new.ecto hello_ecto --module HelloEcto

Link to this section Summary

Functions

A task needs to implement run which receives a list of command line args

Link to this section Functions

A task needs to implement run which receives a list of command line args.

Callback implementation for Mix.Task.run/1.