parent
82e08fa955
commit
57e0da0a1b
|
@ -3,7 +3,7 @@ title: Phoenix
|
|||
category: Elixir
|
||||
layout: 2017/sheet
|
||||
weight: -1
|
||||
updated: 2017-09-04
|
||||
updated: 2018-01-15
|
||||
---
|
||||
|
||||
### Quick start
|
||||
|
@ -19,6 +19,11 @@ mix archive.install https://github.com/phoenixframework/archives/raw/master/phx_
|
|||
mix phx.new hello
|
||||
```
|
||||
|
||||
```bash
|
||||
# Start the application
|
||||
mix phx.server
|
||||
```
|
||||
|
||||
Install Erlang, Elixir, Node.js, PostgreSQL first.
|
||||
See: [Installation](https://hexdocs.pm/phoenix/installation.html) _(hexdocs.pm)_
|
||||
|
||||
|
|
|
@ -3,7 +3,7 @@ title: Phoenix 1.2
|
|||
category: Elixir
|
||||
layout: 2017/sheet
|
||||
weight: -1
|
||||
updated: 2017-09-04
|
||||
updated: 2018-01-15
|
||||
---
|
||||
|
||||
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)
|
||||
|
||||
```
|
||||
config/
|
||||
web/
|
||||
controllers/
|
||||
models/
|
||||
views/
|
||||
templates/
|
||||
static/
|
||||
├── _build
|
||||
├── config/
|
||||
├── deps/
|
||||
├── lib/
|
||||
│ ├── hello/
|
||||
│ ├── hello.ex
|
||||
├── 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`.
|
||||
|
|
Loading…
Reference in New Issue