Trini
I want to use a consumable api in node.js in my pheonix web app
Basically what I want to do is to incorporate node.js into my phoenix project and have it mount directly when I use mix phx.server. First of all I wanted to know if this is possible. And if so, where can I find out how to do it. My final intention in doing this is to be able to incorporate a checkout API for payments into my application, which does not have an implementation in Elixir.
Most Liked
Aetherus
dimitarvp
No, unless I am reading you wrong. Are there any programming languages that can freely embed each other? I mean OK, you can do so with Erlang and Elixir and there are other pairs as well like Java and Clojure (or any other JVM-living language) but to just get a collection of working HTTP endpoints and smack them inside an app made in another language is not supported out of the box pretty much anywhere.
You are better off just putting a reverse proxy like nginx or Caddy in front of both the Node.JS and Elixir app and have it decide which requests are served by which app.
…Or if you actually want to call the Node.JS app from Elixir, as in, do HTTP requests to it, then that’s a whole different story. Req will sort you out there, easily.
Popular in Discussions
Other popular topics
Categories:
Sub Categories:
Forums
Popular Tags
- #ecto
- #liveview
- #troubleshooting
- #learning-elixir
- #deployment
- #library
- #erlang
- #testing
- #genserver
- #mix
- #absinthe
- #remote-other
- #otp
- #plug
- #how-to-question
- #macros
- #postgres
- #channels
- #elixirconf
- #exunit
- #discussion
- #code-sync
- #javascript
- #podcasts
- #onsite
- #dialyzer
- #docker
- #authentication
- #umbrella
- #full-time-contract
- #podcasts-by-brainlid
- #ecto-query
- #elixir-ls
- #phoenix_html
- #iex
- #blog-post
- #graphql
- #genstage
- #ai
- #websockets
- #supervisor
- #advent-of-code
- #elixirconf-us
- #distillery
- #processes
- #forms
- #api
- #metaprogramming
- #security
- #performance









