Skip to content

Latest commit

 

History

History
26 lines (18 loc) · 946 Bytes

README.md

File metadata and controls

26 lines (18 loc) · 946 Bytes

PhoenixLiveviewStockTracker

I made this project to practice Elixir/Phoenix after not using it for a while, and to try out LiveView. This app uses Alpha Vantage's API to power stock search suggestions and pull back the current stock price. I may eventually add a feature to display recent tweets that mention the selected stock and have the server push updates to the client periodically.

Demo

Setup

cp config/dev.secret.exs.template config/dev.secret.exs

Then open config/dev.secret.exs and put in your API keys.

  • See here to get an Alpha Vantage API key.

To start your Phoenix server:

  • Install dependencies with mix deps.get
  • Create and migrate your database with mix ecto.setup
  • Start Phoenix endpoint with mix phx.server or inside IEx with iex -S mix phx.server

Now you can visit localhost:4000 from your browser.