Merge PR #366 (@hachi8833)

* pr/366:
  Update Phoenix framework
This commit is contained in:
Rico Sta. Cruz 2018-03-06 15:56:25 +08:00
parent 82e08fa955
commit 57e0da0a1b
No known key found for this signature in database
GPG Key ID: CAAD38AE2962619A
2 changed files with 27 additions and 9 deletions

View File

@ -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)_

View File

@ -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`.