mix potionx.new (potionx_new v0.0.19) View Source

Creates a new Potionx project.

It expects the path of the project as an argument.

mix potionx.new PATH [--module MODULE] [--app APP]

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

Options

  • --db_password - database password
  • --db_user - database user
  • --default_email - default email
  • --no-frontend - don't install frontend
  • --no-install-deps - don't install deps
  • --no-migrations - don't run migrations
  • --no-users - don't set up users and default user
  • --verbose - use verbose output

Installation

mix potionx.new by default prompts you to fetch and install your dependencies. You can enable this behaviour by passing the --install flag or disable it with the --no-install flag.

Examples

mix potionx.new hello_world

Would generate the following directory structure and modules:

hello_world/   HelloWorld
  apps/
    hello_world/  Hello
    hello_world_graphql/  HelloWorldGraphQl
    hello_world_web/  HelloWorldWeb

To print the Potionx installer version, pass -v or --version, for example:

mix potionx.new -v

Link to this section Summary

Link to this section Functions

Link to this function

ask_for_local_db_password(project)

View Source
Link to this function

ask_for_local_db_user(project)

View Source
Link to this function

generate(base_path, generator, path, opts)

View Source
Link to this function

generate_backend(project, path)

View Source
Link to this function

generate_users_graphql_and_frontend(project, path_key)

View Source
Link to this function

install_pow_assent(project, path_key)

View Source

Callback implementation for Mix.Task.run/1.

Link to this function

run(argv, generator, path)

View Source
Link to this function

run_migrations(project, path_key)

View Source
Link to this function

run_seed(project, path_key)

View Source
Link to this function

set_potionx_dep(project)

View Source