phoenix_gen_new v0.1.0 mix phxg.svc.new

Generates a new phoenix-based JSON microservice project.

mix phxg.svc.new PATH [--module MODULE] [--app APP]

This is similar to the default phoenix project, except the assets directory is removed, various other HTML-related things such as the templates folder are removed, and various things have been adjusted for JSON-only output. A default controller and view is also put in place that serves up simple information about the project in response to GET /

--module MODULE sets the module to use for the business logic. A module name for the web-side is derived from this.

--app APP changes the OTP Application name.

Examples

mix phxg.svc.new minimal_service
mix phxg.svc.new minimal_service --module MinimalService --app minimal_service