parent
82e08fa955
commit
57e0da0a1b
|
@ -3,7 +3,7 @@ title: Phoenix
|
||||||
category: Elixir
|
category: Elixir
|
||||||
layout: 2017/sheet
|
layout: 2017/sheet
|
||||||
weight: -1
|
weight: -1
|
||||||
updated: 2017-09-04
|
updated: 2018-01-15
|
||||||
---
|
---
|
||||||
|
|
||||||
### Quick start
|
### Quick start
|
||||||
|
@ -19,6 +19,11 @@ mix archive.install https://github.com/phoenixframework/archives/raw/master/phx_
|
||||||
mix phx.new hello
|
mix phx.new hello
|
||||||
```
|
```
|
||||||
|
|
||||||
|
```bash
|
||||||
|
# Start the application
|
||||||
|
mix phx.server
|
||||||
|
```
|
||||||
|
|
||||||
Install Erlang, Elixir, Node.js, PostgreSQL first.
|
Install Erlang, Elixir, Node.js, PostgreSQL first.
|
||||||
See: [Installation](https://hexdocs.pm/phoenix/installation.html) _(hexdocs.pm)_
|
See: [Installation](https://hexdocs.pm/phoenix/installation.html) _(hexdocs.pm)_
|
||||||
|
|
||||||
|
|
|
@ -3,7 +3,7 @@ title: Phoenix 1.2
|
||||||
category: Elixir
|
category: Elixir
|
||||||
layout: 2017/sheet
|
layout: 2017/sheet
|
||||||
weight: -1
|
weight: -1
|
||||||
updated: 2017-09-04
|
updated: 2018-01-15
|
||||||
---
|
---
|
||||||
|
|
||||||
See [Phoenix](./phoenix) for a more updated cheatsheet.
|
See [Phoenix](./phoenix) for a more updated cheatsheet.
|
||||||
|
@ -11,13 +11,26 @@ See [Phoenix](./phoenix) for a more updated cheatsheet.
|
||||||
### Directory structure (Legacy 1.2)
|
### Directory structure (Legacy 1.2)
|
||||||
|
|
||||||
```
|
```
|
||||||
config/
|
├── _build
|
||||||
web/
|
├── config/
|
||||||
controllers/
|
├── deps/
|
||||||
models/
|
├── lib/
|
||||||
views/
|
│ ├── hello/
|
||||||
templates/
|
│ ├── hello.ex
|
||||||
static/
|
├── node_modules/
|
||||||
|
├── priv/
|
||||||
|
├── test/
|
||||||
|
└── web/
|
||||||
|
│ ├── channels/
|
||||||
|
│ ├── controllers/
|
||||||
|
│ ├── models/
|
||||||
|
│ ├── static/
|
||||||
|
│ ├── templates/
|
||||||
|
│ ├── views/
|
||||||
|
│ ├── gettext.ex
|
||||||
|
│ ├── router.ex
|
||||||
|
│ ├── web.ex
|
||||||
|
├── mix.exs
|
||||||
```
|
```
|
||||||
|
|
||||||
This is Phoenix 1.2's structure. Phoenix 1.3 has no `models`.
|
This is Phoenix 1.2's structure. Phoenix 1.3 has no `models`.
|
||||||
|
|
Loading…
Reference in New Issue