Wanted a random name for project, so I choose a fruit, watermelon.
- create generators to generate random data like accounts, transactions, etc.
- create a fixed master data set using above generators.
- when querying, the data will be queryied from above dataset, purely with elixir.
- I create a behaviour for now, so we can switch to Repo anytime in future.
- create structs and implement them.
- make these functions called from controllers to return JSON.
- implement basic auth to check for token.
- implement phoenix dashboard to show analytics, number of count. This needs a database. To be discussed.
- add test for results are same.
It will generate a dataset which we will be using. As we wont persist data in DB or genserver, this dataset will be copied and set at module attribute. Further, the queries like get data for particular account will be run on this dataset.
As of now,
in iex, run
Watermelon.Banking.DummyDataGenerator.generate_data_for_2_accounts_10_days()
and
Watermelon.Banking.TellerServiceImplementation.list_accounts("9JeEWBfZvB")
next we add links, that can be used for account details, etc.