Skip to content

Instantly share code, notes, and snippets.

@mkg20001
Created April 17, 2021 12:08
Show Gist options
  • Save mkg20001/8e3220f5e39d7c54f644afdb44c8df06 to your computer and use it in GitHub Desktop.
Save mkg20001/8e3220f5e39d7c54f644afdb44c8df06 to your computer and use it in GitHub Desktop.
Setup a reticulum (hubs) development environment
curl -fsSL https://deb.nodesource.com/setup_14.x | bash -
apt install -y nodejs
apt update
wget https://packages.erlang-solutions.com/erlang-solutions_2.0_all.deb && sudo dpkg -i erlang-solutions_2.0_all.deb
apt update
apt install esl-erlang elixir -y
apt install postgresql -y
apt install software-properties-common -y
apt-add-repository --yes --update ppa:ansible/ansible
apt install ansible -y
git clone https://github.com/mozilla/reticulum
pushd reticulum
su postgres -c "psql -c \"ALTER USER postgres WITH PASSWORD 'postgres';\""
yes y | mix deps.get
yes y | mix ecto.create
# iex -S mix phx.server
popd
git clone https://github.com/mozilla/hubs.git
pushd hubs
npm ci
# npm run local
popd
pushd hubs/admin
npm ci
# npm run local
popd
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment