The official JavaScript client for the Phoenix web framework.
npm install grain-async-phoenix!phoenix logo
> ### Productive. Reliable. Fast.
> A productive web framework that does not compromise speed or maintainability.

Fork of https://github.com/phoenixframework/phoenix 1.14.1
```
yarn add phoenix@npm:grain-async-phoenix
- Socket options.params accepts a promise-returning function so that token can be fetched there.
- Socket.endpointURL and Socket.connect now return a promise
- Renamed module to grain-asyncphoenix
- Note module is published under @ajoslin's username for now, please contact him to update.
See the official site at https://www.phoenixframework.org/
Install the latest version of Phoenix by following the instructions at https://hexdocs.pm/phoenix/installation.html#phoenix
API documentation is available at https://hexdocs.pm/phoenix
Phoenix.js documentation is available at https://hexdocs.pm/phoenix/js
We appreciate any contribution to Phoenix. Check our CODE_OF_CONDUCT.md and CONTRIBUTING.md guides for more information. We usually keep a list of features and bugs [in the issue tracker][4].
You can create a new project using the latest Phoenix source installer (the phx.new Mix task) with the following steps:
1. Remove any previously installed phx_new archives so that Mix will pick up the local source code. This can be done with mix archive.uninstall phx_new or by simply deleting the file, which is usually in ~/.mix/archives/.git clone https://github.com/phoenixframework/phoenix
2. Copy this repo via or by downloading itphx.new
3. Run the mix task from within the installer directory, for example:
`bash`
$ cd installer
$ mix phx.new dev_app --dev
The --dev flag will configure your new project's :phoenix dep as a relative path dependency, pointing to your local Phoenix checkout:
`elixir`
defp deps do
{:phoenix, path: "../..", override: true},
To create projects outside of the installer/ directory, add the latest archive to your machine by following the instructions in [installer/README.md
To build the documentation from source:
`bash`
$ cd assets
$ npm install
$ cd ..
$ MIX_ENV=docs mix docs
To build Phoenix from source:
`bash`
$ mix deps.get
$ mix compile
To build the Phoenix installer from source:
`bash`
$ mix deps.get
$ mix compile
$ mix archive.build
`bash``
$ cd assets
$ npm install
$ npm run watch
* [#elixir-lang][1] on [Freenode][2] IRC
* [elixir-lang slack channel][3]
* [Issue tracker][4]
* [Phoenix Forum (questions)][5]
* [phoenix-core Mailing list (development)][6]
* Visit Phoenix's sponsor, DockYard, for expert phoenix consulting
* Privately disclose security vulnerabilities to phoenix-security@googlegroups.com
[1]: https://webchat.freenode.net/?channels=#elixir-lang
[2]: http://www.freenode.net/
[3]: https://elixir-slackin.herokuapp.com/
[4]: https://github.com/phoenixframework/phoenix/issues
[5]: https://elixirforum.com/c/phoenix-forum
[6]: http://groups.google.com/group/phoenix-core
Copyright (c) 2014, Chris McCord.
Phoenix source code is licensed under the MIT License.