UseCase v0.2.1 mix use_case.gen.phx_resource

Generates context, schema, migration and tests for a resource.

  mix use_case.gen.phx_resource Posts Post posts title content image likes:int

The first argument is the context name, the second the resource name, the third the database table name for the resource and the others the resource fields.

Link to this section Summary

Link to this section Functions

Link to this function

run(io_puts \\ true, args_and_options)