UseCase v0.1.7 mix use_case.gen.phx_resource_json
Generates repo, schema, migration, controllers, views and tests for a resource.
mix use_case.gen.phx_resource Post posts title content image likes:int
or
mix use_case.gen.phx_resource Post posts title content image likes:int --context MyBoundedContext
The first argument is the resource name, the second the database table name for the resource and the others the resource fields. We can set the --context flag to create the resource in context folders and namespaces
Link to this section Summary
Link to this section Functions
Link to this function