- Elixir 1.6
- Redis
- MySQL
- Go to the engine directory (
cd engine
). - Install dependencies with
mix deps.get
. - Make sure mysql and redis are correctly configured in file
config/dev.exs
for MySQL andconfig/config.exs
for redis. - Create schema and migrate database with
mix ecto.create && mix ecto.migrate
. - Start phoenix server with
NODE=engine mix phx.server
and visit http://localhost:4000/.
- Go to the worker directory (
cd worker
). - Install dependencies with
mix deps.get
. - Make sure redis is correctly configured in file
config/config.exs
. - Start phoenix server with
NODE=worker1 PORT=4001 mix phx.server
and visit http://localhost:4001/. - You can do step 4 in another terminal if you want more workers with
NODE=worker2 PORT=4002 mix phx.server
and visit http://localhost:4002/.