Campagin is a react application that demonstrates a list of campaigns.
- Node.js - using node version manager is also useful for installing node.
- Yarn
Then clone the repo. Run yarn to install dependencies. Run yarn start to start the application.
That's it. Application can be found running at the following URL: http://localhost:3000/
After running the application, open browser console. For instance, on chrome press F12. Invoke the method AddCampaigns
AddCampaigns expect an array as parameter that should follow the following format.
[
{
"id": 1, "name": "Campagin 1", "startDate": "3/9/2017", "endDate": "4/12/2017", "Budget": 882
}
]There are couple of ways to run unit tests:
yarn testwill run tests with coverageyarn test:watchwill run test with watch modeyarn open:covwill open coverage report on browser
Deployment can be done usng yarn deploy.
Here is the demo.