Skip to content

symptog/ElixirNode

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ElixirNode

Running Javascript in Elixir using node.js. As I think, this is currently not really efficient. The Javascript String is currently written into a file and then run by node. So you need console.log(result) to get the result back in to elixir.

Please have a look at test/ for some examples.

Installation

  1. Add elixir_node to your list of dependencies in mix.exs:

    def deps do [{:elixir_node, github: "symptog/ElixirNode"}] end

  2. Ensure elixir_node is started before your application:

    def application do [applications: [:elixir_node]] end

  3. Setup your vars in config/config.exs:

    config :elixir_node, react_template: "react_template.js", node_path: System.cwd <> "/node_modules"

  4. Run npm install

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published