This is the George Front-End Team coding exercise.
The app consists of components as stated in the specification section. The attached fx.json file has been used as data source. For countries manipulation and flags mapping the countries-list dependency has been used.
The repository is organized into three main sections - .storybook
, public
, src
.
/.storybook is the the storybook setup folder
/public is where are public assets resides
/src is where the application code lives - all components and their corresponding stories files, utils, hooks and data.
-
In order to run the dev server, run
npm run dev
. -
In order to build the project, run
npm run build
. -
In order to run unit tests and test coverage, run
npm run test
andnpm run test -- --coverage
respectively.
Every component can be find in the storybook. In order to see the components behaviour, please run npm run storybook
.