From 57e0da0a1bc6beff17ed6049be7b022edadc7be7 Mon Sep 17 00:00:00 2001 From: "Rico Sta. Cruz" Date: Tue, 6 Mar 2018 15:56:25 +0800 Subject: [PATCH] Merge PR #366 (@hachi8833) * pr/366: Update Phoenix framework --- phoenix.md | 7 ++++++- phoenix@1.2.md | 29 +++++++++++++++++++++-------- 2 files changed, 27 insertions(+), 9 deletions(-) diff --git a/phoenix.md b/phoenix.md index a1acfdf12..293a4a82a 100644 --- a/phoenix.md +++ b/phoenix.md @@ -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)_ diff --git a/phoenix@1.2.md b/phoenix@1.2.md index 2008efe70..aad0b1c3d 100644 --- a/phoenix@1.2.md +++ b/phoenix@1.2.md @@ -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`.