Skip to content

ExFacto/oraclex

Repository files navigation

Oraclex

Prerequisites

  1. Erlang & Elixir
  1. Postgres

First Time Setup

  1. Ensure your postgres details in config/dev.exs are correct and Postgres is exposed at port 5432:
config :oraclex, Oraclex.Repo,
  username: "<POSTGRES_USERNAME>",
  password: "<POSTGRES_PASSWORD>",
  hostname: "<POSTGRES_HOST>",
  database: "oraclex_dev",
  1. Log Into Postgres
  • psql -h localhost -p 5432 -U postgres -d postgres
  1. Create dev DB
  • CREATE DATABASE oraclex_dev;
  1. In this repo:
  2. 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
  1. run source .env
  2. run mix deps.get
  3. run mix ecto.setup
  4. run mix ecto.migrate
  5. run cd assets && npm install

Recurring Startup

  1. run source .env
  2. if there are new migrations, run mix ecto.migrate
  3. run iex -S mix phx.server

Now you can visit localhost:4000 from your browser.

About

Oracle Server in Elixir

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •