A minimal Erlang SDK for the Microsandbox project.
Add to your rebar.config:
{deps, [
{microsandbox, "0.0.1"}
]}.def deps do
[
{:microsandbox, "~> 0.0.1"}
]
end% Print a greeting
{ok, Greeting} = microsandbox:greet("World"),
io:format("~s~n", [Greeting]).# Clone the repository
git clone https://github.com/yourusername/monocore.git
cd monocore/sdk/erlang
# Compile the project
rebar3 compilerebar3 eunitrebar3 edoc-
Create an account on Hex.pm if you don't have one.
-
Add Hex as a plugin to rebar3 in your
~/.config/rebar3/rebar.config:
{plugins, [rebar3_hex]}.- Configure your Hex credentials:
rebar3 hex user auth- Publish your package:
rebar3 hex publishFor more details, see Publishing Packages with rebar3_hex.