Hacker News .hnnew | past | comments | ask | show | jobs | submit | tylrbrkr's commentslogin

Not sure I understand exactly what you mean, but yeah generally speaking. You really don't need JS beyond what any of the project generators give you for a tonne of use cases. A lot can be handled where you need by the LiveView.JS module. Phoenix without LiveView definitely doesn't need JS.


So, I could build an e-commerce website in Elixir using Phoenix, similarly to how I could do this in PHP?

Would something like:

  $ mix archive.install hex phx_new
  $ mix phx.new your_project_name --no-html --no-webpack
work? With all the JavaScript removed if it still creates any.[1]

[1] I think it does create a .js file at the very least but that is just a configuration file.


Yes, you can build fully server rendered web apps with Phoenix. You'd need HTML templates for that though, so you shouldn't use the --no-html option.

--no-webpack is deprecated as Phoenix uses esbuild now but see the docs: "--no-esbuild - do not include esbuild dependencies and assets. We do not recommend setting this option, unless for API only applications, as doing so requires you to manually add and track JavaScript dependencies"


If I intend to create an e-commerce website without any JavaScript, may I use "--no-esbuild" given that I do not want to add any JavaScript dependencies? I am trying to replace the e-commerce website I have built using PHP & HTML & CSS (without any JavaScript at all).

I was even considering "--no-assets" and add Tailwind (or whatever else) manually.


I hope a core developer of Phoenix could help me out here. :/

https://hackernews.hn/item?id=35928648


Yeah you're not the first to request this, it makes a lot of sense as a next step. So I can better understand the constraints, how much memory are we talking if you were to import all those files?


Oh, TIL Logic was not always an Apple product. Upload + download is possible right now but deeper integration with DAWs is on the roadmap. I’m going to create a native sidecar app that can turn your DAW into an input device for the browser to record from.


Thanks! Yeah it’s seemed like an obvious pairing for a while I think but the browser tech is finally making it possible.


Thanks mate!


Thanks! I agree. The existing players trying to take this to the browser are all going for a full replacement of native DAWs rather than to augment/supplement them like what I'm going for. Musicians _love_ their DAWs so I don't think that's the right play, at least not for now.


For sure. The pace at which they've been making all these improvement is really impressive.


Would Nx Signal be that missing piece? https://github.com/polvalente/nx-signal


For some of it! I was thinking more something for loading different audio encodings to Nx tensors…so doing everything up until Nx


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: