programming-phoenix

所属分类:电子书籍
开发工具:Elixir
文件大小:0KB
下载次数:0
上传日期:2016-08-19 19:13:44
上 传 者sh-1993
说明:  Chris McCord、Bruce Tate和JoséValim编写的《为凤凰城编程》一书的逐步源代码,
(Step-by-step source code for Programming Phoenix book written by Chris McCord, Bruce Tate, and José Valim,)

文件列表:
hello/ (0, 2016-08-19)
hello/brunch-config.js (1633, 2016-08-19)
hello/config/ (0, 2016-08-19)
hello/config/config.exs (918, 2016-08-19)
hello/config/dev.exs (1286, 2016-08-19)
hello/config/prod.exs (2148, 2016-08-19)
hello/config/test.exs (481, 2016-08-19)
hello/lib/ (0, 2016-08-19)
hello/lib/hello.ex (1023, 2016-08-19)
hello/lib/hello/ (0, 2016-08-19)
hello/lib/hello/endpoint.ex (1179, 2016-08-19)
hello/lib/hello/repo.ex (61, 2016-08-19)
hello/mix.exs (1640, 2016-08-19)
hello/mix.lock (3900, 2016-08-19)
hello/package.json (459, 2016-08-19)
hello/priv/ (0, 2016-08-19)
hello/priv/gettext/ (0, 2016-08-19)
hello/priv/gettext/en/ (0, 2016-08-19)
hello/priv/gettext/en/LC_MESSAGES/ (0, 2016-08-19)
hello/priv/gettext/en/LC_MESSAGES/errors.po (2112, 2016-08-19)
hello/priv/gettext/errors.pot (2145, 2016-08-19)
hello/priv/repo/ (0, 2016-08-19)
hello/priv/repo/seeds.exs (346, 2016-08-19)
hello/test/ (0, 2016-08-19)
hello/test/controllers/ (0, 2016-08-19)
hello/test/controllers/page_controller_test.exs (189, 2016-08-19)
hello/test/support/ (0, 2016-08-19)
hello/test/support/channel_case.ex (988, 2016-08-19)
hello/test/support/conn_case.ex (1084, 2016-08-19)
hello/test/support/model_case.ex (1778, 2016-08-19)
hello/test/test_helper.exs (67, 2016-08-19)
hello/test/views/ (0, 2016-08-19)
hello/test/views/error_view_test.exs (558, 2016-08-19)
hello/test/views/layout_view_test.exs (72, 2016-08-19)
hello/test/views/page_view_test.exs (70, 2016-08-19)
hello/web/ (0, 2016-08-19)
hello/web/channels/ (0, 2016-08-19)
... ...

# Programming Phoenix This repository contains the source code for [Programming Phoenix](https://pragprog.com/book/phoenix/programming-phoenix) book written by Chris McCord, Bruce Tate, and José Valim. You can follow along the book or jump to a section by using git tags. ## How to use 1. Get the source code * Clone the project with `git clone https://github.com/omin/programming-phoenix.git` * Goto the project directory with `cd programming-phoenix` 2. Goto to a section * The book uses file path of the source code to indicate the code changes. ![img_0009](https://cloud.githubusercontent.com/assets/3143154/17651475/869ab072-621c-11e6-87c3-fa7b54d0be75.jpg) * Goto any state of the project with `git checkout TAG_NAME` * e.g. `git checkout channels/listings/rumbl/web/static/js/video.change6.js` 3. To start your Phoenix app: * Goto the sub-project directory (hello, rumbl, or rumbrella) with `cd PATH` * Install dependencies with `mix deps.get` * Create and migrate your database with `mix ecto.create && mix ecto.migrate` * Install Node.js dependencies with `npm install` * Start Phoenix endpoint with `mix phoenix.server` Here's a combination of all the commands above to save you some typing * `mix deps.get && mix ecto.create && mix ecto.migrate && npm install && mix phoenix.server` Now you can visit [`localhost:4000`](http://localhost:4000) from your browser. Ready to run in production? Please [check our deployment guides](http://www.phoenixframework.org/docs/deployment). ## Learn more * Official website: http://www.phoenixframework.org/ * Guides: http://phoenixframework.org/docs/overview * Docs: https://hexdocs.pm/phoenix * Mailing list: http://groups.google.com/group/phoenix-talk * Source: https://github.com/phoenixframework/phoenix Disclaimer: the most up-to-date source code can be found on the official Pragprog website but please do feel free to create github issues if you run accross any problems.

近期下载者

相关文件


收藏者