Code Monkey home page Code Monkey logo

phoenixframework's Introduction

Phoenix Framework 中文入门教程

前端开发一直都是我的主业。是的,我是在暗示你:Phoenix Framework 非常容易上手。不过也因为我一直在从事前端开发,后端的一些概念我可能理解得不够到位,如有错误,欢迎指正。

目录

  1. 准备工作
  2. 创建项目
  3. Phoenix 初体验
  4. Menu 项目规划

捐款

如果教程对你有很大帮助,并且你对捐款没有心理阴影的话,欢迎扫描下方的支付宝二维码:

支付宝捐款

License & Copyright

© 2017 陈三

知识共享许可协议
本作品采用知识共享署名-禁止演绎 4.0 国际许可协议进行许可。

phoenixframework's People

Contributors

chenxsan avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

phoenixframework's Issues

教程中代码片段的形式调查

目前教程中涉及的代码片段都是 git log -p 的结果,示例如下:

diff --git a/web/controllers/recipe_controller.ex b/web/controllers/recipe_controller.ex
index 96a0276..832ca52 100644
--- a/web/controllers/recipe_controller.ex
+++ b/web/controllers/recipe_controller.ex
@@ -1,5 +1,6 @@
 defmodule TvRecipe.RecipeController do
   use TvRecipe.Web, :controller
+  plug :login_require when action in [:new, :create, :edit, :update, :delete]

   alias TvRecipe.Recipe

不知道这样的形式有没有问题。

如果觉得能接受,请点击 +1,无法接受,请点击 -1。

或者有其它建议,可以附在评论中。

cc @torghay, @nanlong.

后续还会更新么?希望加入这些内容!

根据你的教程已经完成注册登录,也在看其他教程添加了Guardian库,正在改进注册登录部分。本人之前根据这个文档实现了pjax,但是表单提交部分遇到了点问题,表单提交时pjax生效无刷新返回首页但是地址栏的地址并没有改变。在此以后有更新的打算希望加上Guardian库的使用和pjax的完美实现。非常感谢你的分享,有了这个教程,phoenix的注册登录部分理解透了。再次感谢!

您好 关于npm的安装

您好,我跟着教程走 貌似在mix phoenix.server 之前还应该要安装node的依赖(教程上没有),否则node watcher不能工作,静态资源也无法访问。但是我npm install 出现错误如下:
npm ERR! path ../deps/phoenix
npm ERR! code EPROTO
npm ERR! errno -71
npm ERR! syscall symlink
npm ERR! EPROTO: protocol error, symlink '../deps/phoenix' -> '/vagrant/tv_recipe/node_modules/phoenix'

npm ERR! A complete log of this run can be found in:
npm ERR! /home/vagrant/.npm/_logs/2017-10-13T05_01_48_293Z-debug.log

刚学Phoenix,遇到的问题也可能有点那个啥,forgive me!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.