A Reddit/Threads-inspired social media platform built with Phoenix, React and Inertia
-
Install Elixir and Erlang
- I recommend using asdf to manage your Elixir and Erlang versions
- Simply run
asdf install
in the project root to install the correct versions
-
Install Postgres
- I recommend using Postgres.app on macOS
- Alternatively, you can use Docker with the following command:
docker run --name threadit_db -e POSTGRES_USER=postgres -e POSTGRES_PASSWORD=postgres -e POSTGRES_DB=threadit_dev -p 5432:5432 -d postgres
-
Install Node.js
-
Run
mix setup
to install the elixir and javascript dependencies and seed the database -
Start the Phoenix server with
mix phx.server
or inside IEx withiex -S mix phx.server
-
Now you can visit
localhost:4000
from your browser