Skip to content

Running Locally for Development

Yeyo edited this page Jan 19, 2024 · 4 revisions

You'll learn how to run Magnetssimo locally for development.

Magnetissimo runs on Elixir and Phoenix Framework. We save all torrent information to a local SQLite file. The project is extremely easy to run locally, no strange onboarding necessary.

Linux Ubuntu / Mint

We use the .tool-versions files and asdf to install the right language versions.

Run asdf install.

Run mix deps.get.

Run mix ecto.reset.

Run iex -S mix phx.server.

You can now access Magnetissimo at https://localhost:4000

Mac

We use the .tool-versions files and asdf to install the right language versions.

Run asdf install.

Run mix deps.get.

Run mix ecto.reset.

Run iex -S mix phx.server.

You can now access Magnetissimo at https://localhost:4000

Windows

Help needed to write this part.

CentOS 7

Run sudo yum install epel-release wget vim screen make git -y to install deps.

Install Node:

curl --sL https://rpm.nodesource.com/setup_6.x | bash -
sudo yum install -y nodejs

Install Erlang and Elixir by following this guide:

http://www.jeramysingleton.com/install-erlang-and-elixir-on-centos-7-minimal/

Update sources:

sudo yum update -y && yum upgrade -y

Run mix deps.get.

Run mix ecto.reset.

Run iex -S mix phx.server.

You can now access Magnetissimo at https://localhost:4000

Debian 7

Install Erlang and Elixir:

curl -sL https://deb.nodesource.com/setup_6.x | sudo -E bash -
wget https://packages.erlang-solutions.com/erlang-solutions_1.0_all.deb && sudo dpkg -i erlang-solutions_1.0_all.deb

Then update the sources and download the required packages:

sudo apt-get update
sudo apt-get install postgresql nodejs esl-erlang elixir git screen

Run mix deps.get.

Run mix ecto.reset.

Run iex -S mix phx.server.

You can now access Magnetissimo at https://localhost:4000

Clone this wiki locally