Install all the dependencies using the following command.
npm install
or yarn install
Execute the following command to run the application.
npm start
or yarn start
As instructed in the mail I have exposed the function AddCampaigns
globally. You can call the function as follows in the developer console to load the campaigns.
AddCampaigns([{"id":1,"name":"Divavu","startDate":"9/19/2017","endDate":"3/9/2018","Budget":88377},{"id":2,"name":"Jaxspan","startDate":"11/21/2017","endDate":"2/21/2018","Budget":608715},{"id":3,"name":"Miboo","startDate":"11/1/2017","endDate":"6/20/2017","Budget":239507}]);
Execute the following command to run the unit tests.
npm test
or yarn test