Skip to content

Commit 0561333

Browse files
committed
Document how to generate a Phoenix application when using the templates
1 parent 0caad9c commit 0561333

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

README.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,22 @@ projects.
2121

2222
3. Pick nix-shell or Mise for the development environment.
2323

24+
4. For a [Phoenix](https://www.phoenixframework.org/) application, generate it with:
25+
26+
1. Install [phx_new](https://hex.pm/packages/phx_new):
27+
28+
```bash
29+
mix archive.install hex phx_new 1.8.3
30+
```
31+
32+
_Omit the version (`1.8.3`) to install latest version of `phx_new`._
33+
34+
2. Generate the Phoenix application within the current directory:
35+
36+
```bash
37+
mix phx.new . --app awesome_name
38+
```
39+
2440
## nix-shell for Elixir and Phoenix
2541

2642
Reproducible development environment for Elixir/Phoenix projects which relies on

0 commit comments

Comments
 (0)