Phoenix 1.3
Phoenix 1.3
Phoenix 1.3 learn
常用命令
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
```
mix phx.new hello
mix deps.get
mix deps.compile
iex -S mix phx.server
mix ecto.create
mix phx.server
```
lib/hello_web 保存web相关的代码,
```
|-- channels
| |-- user_socket.ex
|-- controllers
| |-- page_controller.ex
|-- router.ex
|-- endpoint.ex
|-- template
| |-- layout
| |-- page
|-- views
| |-- xx_ helpers.ex
```
This post is licensed under CC BY 4.0 by the author.