- Erlang & Elixir
- https://www.pluralsight.com/guides/installing-elixir-erlang-with-asdf
- Check
.tool-versionsfor the correct versions to install
- Postgres
- Ensure your postgres details in
config/dev.exsare correct and Postgres is exposed at port5432:
config :oraclex, Oraclex.Repo,
username: "<POSTGRES_USERNAME>",
password: "<POSTGRES_PASSWORD>",
hostname: "<POSTGRES_HOST>",
database: "oraclex_dev",
- Log Into Postgres
psql -h localhost -p 5432 -U postgres -d postgres
- Create dev DB
CREATE DATABASE oraclex_dev;
- In this repo:
- Populate a Pirvate Key for the Oracle.
- To generate a random one, run
echo "export ORACLEX_PRIVATE_KEY=$(openssl rand 32 | xxd -c 256 -p)" > .env - If you want to use your own, run:
echo "export ORACLEX_PRIVATE_KEY=<32-byte-hex>" > .env
- run
source .env - run
mix deps.get - run
mix ecto.setup - run
mix ecto.migrate - run
cd assets && npm install
- run
source .env - if there are new migrations, run
mix ecto.migrate - run
iex -S mix phx.server
Now you can visit localhost:4000 from your browser.