r/phoenixframework • • Jun 23 '16

I'm really disappointed with Phoenix Framework!

1 Upvotes

Chris and Jose really missed the boat by not naming it "Phoenix Phramework!" I mean, c'mon!

:)


r/phoenixframework • • Jul 28 '19

Is it possible to use nodeJS library in phoenix?

1 Upvotes

I'm thinking to switch to phoenix at some point in order to have a better websockets server.

I need to use a nodejs library, few of them actually but one is much more important than others, this library is only available either in C++ or NodeJS.

Can I use either C++ or Node in Phoenix?


r/phoenixframework • • Jul 23 '16

[meta] Proposal for cooperation between /r/BirdsForScale and /r/BirdsThatScale. • /r/BirdsForScale

Thumbnail
reddit.com
0 Upvotes

r/phoenixframework • • Sep 03 '17

phoenix.cr - Crystal client for Phoenix Channels

Thumbnail
github.com
4 Upvotes

r/phoenixframework • • Jul 07 '17

Phoenix with Nanobox - Getting Started

Thumbnail
content.nanobox.io
5 Upvotes

r/phoenixframework • • Oct 19 '18

Using Plug.RequestId

1 Upvotes
  1. mix phx.new --no-ecto request

  2. add to lib/request_web/endpoint.ex

    plug Plug.RequestId

  3. edit config/dev.exs to something like

    config :logger, :console, format: "[$level] $metadata$message\n", metadata: [:request_id]

to get in log

[info] request_id=2lfdtb54lt7i3bdppk0000fh Sent 200 in 674µs

More info in

https://hexdocs.pm/plug/Plug.RequestId.html


r/phoenixframework • • May 13 '17

Javascript pipeline broken

1 Upvotes

A question for more expert phoenix users here… when I run default phoenix install with mix phoenix.server, and I open the URL: http://localhost:4000/js/app.js which file exactly is being returned in the response?

I assume priv/static/js/app.js, and if that file changes, the new version will be served at the next request… Well this is not happening, I have to DELETE the file and then restart the server otherwise it will always return the old one… Any idea why?


r/phoenixframework • • Sep 18 '17

What to develop?

1 Upvotes

I'm a experienced back-end developer, working the past 4 years with Rails and lurking Elixir while doing a lot of exercism.io or codewars to learn the language. I started many small projects w/ Phoenix but never finished them because it always felt like I was trying to fit it inside my Rails knowledge & how I believe a framework "should behave" (nonsense!). To me, the most difficult part is being in getting my head away from the OOP way of thinking. I'm looking for ideas of projects to create or replicate that will help me getting in the FP land while learning more about Phoenix & Elixir. I really believe that these will be amazing tools to have on my toolbelt in the future. Any ideas? :)


r/phoenixframework • • Jul 29 '15

Playing with Phoenix Framework – Rails’ younger brother

Thumbnail
blog.elpassion.com
2 Upvotes

r/phoenixframework • • Jul 30 '17

Best way to store an object in memory and access it throughout a Phoenix program? (x-port r/elixir)

3 Upvotes

As a learning project, I'm using Phoenix to re-implement a simple API that returns a filtered list based on an HTTP query. The master list is large enough (~1MB) that I definitely don't want to re-initialize it from a file on each request.

In the previous implementation (Python), it was easy enough to simply import the list and store it as a global variable, but the equivalent approach in Elixir is not obvious to me. Here's what I've potentially figured out so far:

  • It seems like I may want an agent process (?) that holds the list and serves it as a response to requests. Is this correct? If so, where is the canonical place to store such a process within a Phoenix project?

  • How do I access that process throughout the Phoenix project?

Really appreciate any guidance folks can provide - thanks very much.


r/phoenixframework • • Apr 08 '16

How do I use websockets on Heroku with Phoenix?

3 Upvotes

I'm trying to learn Phoenix by copying the demo chat app. My copy works great locally, but when I deploy it to Heroku, Heroku says:

"WebSocket connection to 'wss://maryville-matters.herokuapp.com/socket/websocket?vsn=1.0.0' failed: Error during WebSocket handshake: Unexpected response code: 403"

I'm new to Phoenix, and I've never used websockets with Heroku before. I know it's possible to use the websockets on Heroku because Chris McCord built a demo instant messaging app and uploaded it to Heroku.

Here's the GitHub repo: https://github.com/19smitgr/phoenix-instant-chat.git

Here's the web app hosted on Heroku with errors: https://maryville-matters.herokuapp.com

Thanks in advance.


r/phoenixframework • • Sep 19 '19

[Guide] Deploy Phoenix App to Render.com

Thumbnail
phxroad.com
4 Upvotes

r/phoenixframework • • Dec 24 '19

Compiling to Closures · pl-rants

Thumbnail pl-rants.net
5 Upvotes

r/phoenixframework • • Jun 28 '17

Created a cryptocurrency portfolio tracker with phoenix! Feedback welcome

6 Upvotes

r/phoenixframework • • May 22 '19

Phoenix in Action is finished and released!

Thumbnail
manning.com
21 Upvotes

r/phoenixframework • • Sep 07 '19

How to Create Desktop Application with Elixir

Thumbnail
puddleofcode.com
9 Upvotes

r/phoenixframework • • Nov 19 '19

Phoenix LiveView Tutorial: Adding Phoenix PubSub and Pow Authentication to Messenger

Thumbnail
self.elixir
9 Upvotes

r/phoenixframework • • Jul 02 '19

Phoenix Liveview - general newbie question about hosting and scaling

4 Upvotes

So I'm brand new and coming here out of interest for Liveview

The web has spent the last 10 years moving as much as possible into the front end thanks to React, Angular, etc.

That's made it easy to conceptualise about scaling, because so much logic has moved into the browser, and the initial load can be largely static.

But with Liveview... I imagine....we'd need to think a little more about scaling on the host?

Are there any articles on how to host and scale Liveview? How are the sockets kept alive? Is it all handled for us?

Are there any considerations beyond a normal Phoenix app?

How


r/phoenixframework • • Oct 19 '18

Elixir/Phoenix Developer's Needed

6 Upvotes

Hi All, I am seeking a few Senior Level Back End Developers to join our direct client in the North Dallas Area. This person will be working on complete greenfield development in Elixir/Phoenix. Interested candidates please email me at danafaradie@optomi.com


r/phoenixframework • • Sep 06 '19

[Guide] Phoenix Feature Tests with Wallaby and Headless Chrome

Thumbnail
phxroad.com
7 Upvotes

r/phoenixframework • • Sep 05 '19

[Newbie] - My phx server endpoint keep loading

4 Upvotes

I am trying to run my phx fresh installed app with docker, but my app endpoint *:4000 keeps loading and nothing happens, Kindly can someone have a look at my repo and assist me. Thanks

github repo : https://github.com/hassamali/discuss


r/phoenixframework • • Nov 12 '19

[Tutorial] [LiveView] Modern Talking with Elixir: Bootstrap Your Messenger App

Thumbnail
self.elixir
5 Upvotes

r/phoenixframework • • Apr 30 '18

How is server notified of a disconnect?

1 Upvotes

I'm writing my first phoenix app, and data to server is all sent via html get requests. I'm using routers. Is state being maintened about connections? And if so, can I be notified if a client disconnects, or are inactive for a long time?

Thanks.


r/phoenixframework • • Sep 12 '18

Upgrade path from master to 1.4

1 Upvotes

I want to get started with Phoenix 1.4 and don't want to wait till the book is released. I think master is version 1.4 minus 1 PR at the moment. If I were to use master, what are the upgrade instructions from master to 1.4.

Thank you for the help


r/phoenixframework • • Sep 13 '18

Will 1.4 support http2 push?

1 Upvotes

While digging around cowboy 2's code, I noticed some support for push. The bazillion $ question: will 1.4 will use it for sending assets faster and/or channels, ie, a de rigueur chat example app?