New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Writing Elixir modules #625
Comments
Well, if you want to develop on Elixir with ejabberd, basically, the blog post shows that you need a development environment, source code, etc. My recommendation is thus to install Erlang, Elixir on your machine and to build ejabberd from source. At the moment, that's the best approach. I will keep the ticket open to see if we can test the build chain for Elixir and see if we can make it work. |
Ok thanks. I tried copying my elixir project to my ~/.ejabberd-modules/sources. I had to create a .spec file to make it see it, and I was able to do module_install but it looks like the install creates an empty ebin directory. So guessing the build chain doesn't support it yet. |
Yes the module installer does not yet support Elixir module. |
I'd love to see support of Elixir module by the module installer. Or else some guide to compile a Elixir module for ejabberd independently |
+1 on support from module installer |
also a better documentation on behaviours and other basic stuff you can do from erlang/elixir would be great |
…ller Fix issue #625: Writing Elixir modules
Feature added by #1193 thanks to Gabriel |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Hello,
I'm new to both writing modules for Ejabberd as well as Elixir (and erlang). I'm trying to follow the blog post here: https://blog.process-one.net/elixir-sips-ejabberd-with-elixir-part-1/
I'm using the Mac OSX installer of ejabberd (https://www.process-one.net/en/ejabberd/downloads/) - how would I add a custom Elixir module into it? Do I just create a .ex Elixir module and dump it into the lib directory? Is there some sort of compilation I have to do first? Do you have a sample Elixir module project out there?
Thanks, and sorry for the newbie questions.
The text was updated successfully, but these errors were encountered: