随笔分类 -  Phoenix

摘要:备注: 首先需要安装 elixir 环境 1. 基本项目说明 参考项目: https://github.com/rongfengliang/phoenix-rest-demo 2. 项目说明 备注: 主要是插件的配置 mix.exs defp deps do [ {:phoenix, "~> 1.3 阅读全文
posted @ 2022-06-16 09:20 孤独信徒 阅读(40) 评论(0) 推荐(0) 编辑
摘要:比如 某个请求是http:// localhost:4000提供的,但是我们的前端应用程序将在http:// localhost:3000上运行 。 这样,就涉及到CORS跨域问题了, 为处理这个跨域错误,我们需要安装第三方库 {:cors_plug, "~> 1.1"},然后在sling/api/ 阅读全文
posted @ 2022-06-15 17:40 孤独信徒 阅读(39) 评论(0) 推荐(0) 编辑
摘要:可根据 mix help 查询 mix # Runs the default task (current: "mix run") mix app.config # Configures all registered apps mix app.start # Starts all registered 阅读全文
posted @ 2022-06-15 09:59 孤独信徒 阅读(107) 评论(0) 推荐(0) 编辑
摘要:Ps: 需要注意的是,我学习的时候,Elixir 是 1.13.1的版本,而 Phoenix 是 1.6.10的版本,对于其他版本,不一定正确。 1、安装 Phoenix 之前,先安装 Elixir。 2、如果已经安装好了 Elixir ,使用一下命令安装 hex 这一个模块。 $ mix loca 阅读全文
posted @ 2022-06-14 17:28 孤独信徒 阅读(231) 评论(0) 推荐(1) 编辑

点击右上角即可分享
微信分享提示