$ git clone [email protected]:KevinH2810/PortofolioDapp.git
$ npm i
due to the size of the csv file, please download the transactions and place the transactions.csv file in ./files
to allows the code to import the csv to sqlite.
Rename the file .env.example
to .env
and fill out the necessary data
(Note: make sure field CRYPTO_COMPARE_KEY
is filled with your cryptocompare api key)
$ npm start
it will run the prisma command to create the database and also populate the database with transactions data
$ node index.js portofolio -d <date format. ex: 2018-10-02> -t <token symbol. ex: BTC, ETH, XRP>
example command :
$ node index.js portofolio -d 2018-10-10 -t BTC