Skip to content
/ minty Public

Parse and summarize Mint.com's transactions CSV download

License

Notifications You must be signed in to change notification settings

wsmoak/minty

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 beatrichartz/csv#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.

About

Parse and summarize Mint.com's transactions CSV download

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published