

Phoenix 1.2 cheatsheet
source link: https://devhints.io/[email protected]
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

See Phoenix for a more updated cheatsheet.
Directory structure (Legacy 1.2)
├── _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
.
Recommend
-
127
Huawei Collaborated with the Developers of Phoenix OS for the Mate 10’s Easy Projection Feature Though the company has virtually no presence in the United States, Huawei is a to...
-
101
phoenix.vim: rails.vim inspired tools for Phoenix
-
134
README.md Phoenix
-
36
Recently, I've been writing a tonne of Elixir code, some Phoenix websites and a few other small Elixir applications. One thing that was bugging me every time I would create a new project is that I would want to add Docker...
-
53
There are many team messaging apps available in the market, but Slack is not only preferred for its simplicity but also for a wide variety of Slack apps. Slack apps make our lives a lot easier if designed carefully....
-
5
#Changesets Changesets def changeset(user, params \\ :empty) do %User{} |> Ecto.Changeset.change # basic casting to changeset user |&g...
-
5
Plug.Conn cheatsheet Request conn.host # → "example.com" conn.method # → "GET" conn.path_info # → ["posts", "1"] conn.request_path # → "/posts/1" conn.query_string # → "utm_source=twi...
-
8
This is for Phoenix 1.2 and below. Phoenix 1.3 has a new API.. Generating $ mix phoenix.gen.html Profile profiles email:string age:integer $ mix phoenix.gen.html...
-
6
Showing routes mix phx.routes # 1.3+ mix phoenix.routes # 1.2 and below See: Mix.Tasks.Phoenix.Routes (hexdocs.pm...
-
5
Ecto migrations cheatsheetCreating $ mix ecto.gen.migration update_posts_table creating priv/repo/migrations/20160602085927_update_posts_table.exs ··· $ mix ecto.migrate $ mix...
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK