A rapid admin generator for Phoenix apps. See more details in the README.
Because Torch relies on generators, the development environment needs to let you see the generated code in action. Accordingly, this repo is a Mix umbrella app.
- apps/torch: The actual Torch Hex package, including the generators.
- apps/example: A sample Phoenix app, using Torch. By running the Phoenix app, you can see Torch-generated code in action.
Follow these steps to set up your environment:
- Run
bin/setup
. - In one terminal tab,
cd apps/torch
and run./node_modules/brunch/bin/brunch watch --production
. - In another terminal tab,
cd apps/example
and runmix phoenix.server
.
You can then visit localhost:4000/admin/posts
and see a Torch-generated admin.
If you make a change to one of the generators, you can run mix regenerate
inside apps/example
to regenerate the Torch code.