Parse and summarize Mint.com's transactions CSV download
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
config
lib
priv
test
web
.gitignore
LICENSE.md
README.md
brunch-config.js
mix.exs
mix.lock
package.json

README.md

Minty

$ mix phoenix.server

To start over and re-seed: $ mix ecto.drop

make changes to the model/migration/html

$ mix ecto.create $ mix ecto.migrate $ mix run priv/repo/seeds.exs

Note: The Stream.drop(1) ignores the first line of the CSV because we are re-defining the headers. See https://github.com/beatrichartz/csv/issues/27

http://stackoverflow.com/questions/34357812/in-elixir-how-do-you-format-numbers-with-string-interpolation

http://www.rymai.me/2015/12/08/populating-database-tables-from-a-csv-in-elixir/

http://www.glydergun.com/diving-into-ecto-part-2/

https://hexdocs.pm/ecto/Ecto.Query.html

To print the summary:

mix run "priv/repo/queries.exs"

To start your Phoenix app:

  • Install dependencies with mix deps.get
  • Create and migrate your database with mix ecto.create && mix ecto.migrate
  • Install Node.js dependencies with npm install
  • Start Phoenix endpoint with mix phoenix.server

Now you can visit localhost:4000 from your browser.

Visit /transactions and /summary to see the data.