Technical test using pure javascript and CSS. The goal of this project is to render three donut charts, using D3 library. The architecture uses MVC pattern, having one single view connected to three different models. Data is consumed from this endpoints:
- https://5c90720d8447f30014cb8425.mockapi.io/api/v1/revenue
- https://5c90720d8447f30014cb8425.mockapi.io/api/v1/impresions
- https://5c90720d8447f30014cb8425.mockapi.io/api/v1/visions
- Clone the repository.
- Run
npm install
to install all dependencies. - Run
gulp default
to generate the bunddle (prerequisite install gulp). - Open index.html in a browser to see the charts working.
- Open a terminal in the main folder.
- Run
gulp default
- Open index.html in a browser to see the changes.
No need to rebuild after code changes
- Open a terminal in the main folder.
- Run
gulp watch
- Refresh index.html in the browser to see the changes.
- Run
npm test
- Fill the donut chrts with the area chart (historical values).
- Use of SCSS.
- Styled components instead of global stylesheets.
- Use of webpack and webpack-dev-server.