To start your Phoenix app:
- Install dependencies with
mix deps.get - Install Node.js dependencies with
npm install - Start Phoenix endpoint with
mix phoenix.server
Now you can visit localhost:4000 from your browser.
Ready to run in production? Please check our deployment guides.
- Official website: http://www.phoenixframework.org/
- Guides: http://phoenixframework.org/docs/overview
- Docs: https://hexdocs.pm/phoenix
- Mailing list: http://groups.google.com/group/phoenix-talk
- Source: https://github.com/phoenixframework/phoenix
iex --name [email protected] --cookie kafkamon --remsh [email protected]
KafkaEx.produce "users", 0, Avrolixr.Codec.encode!(%{event: %{app_id: "a", name: "n", timestamp: 0}, lawyer_id: 0}, File.read!("test/data/AvvoProAdded.avsc"), 'AvvoEvent.AvvoProAdded')
Using edib building a docker image is super great! Just run
./bin/build.sh and then ./bin/publish.sh to publish.
Obviously publishing only works if you have rights ;)
To use, you can run with docker:
docker run --rm \
-e "PORT=4000" \
-e "KAFKA_HOSTS=172.17.0.1:9092" \
-e "KAFKAMON_HOST=localhost" \
-e "KAFKAMON_PORT=4000" \
-p 4000:4000 \
avvo/kafkamon:latest
PORTis the port phoenix listens to inside the containerKAFKA_HOSTSis a comma-separated list of kafka host:port pairs.KAFKAMON_HOSTis the name you use in the browser to connect to the server. This is important for websockets/javascript/CORS security.KAFKAMON_PORTis the public port you use in your browser to connect to the server. Just likeKAFKAMON_HOSTits for security.-p internal:externalis the docker port exposing flag. It exposes the internal phoenix port to the external browser world.