This is a coding challange given by isarbits for Software Developer position. The topic was to build a crawler, which extracts products information from the the two following sites and stores found data in a normalized form:
$ npm install
$ npm install x-ray
# development
$ npm run start
# watch mode
$ npm run start:dev
# incremental rebuild (webpack)
$ npm run webpack
$ npm run start:hmr
# production mode
$ npm run start:prod
# unit tests
$ npm run test
# e2e tests
$ npm run test:e2e
# test coverage
$ npm run test:cov
To get the Products from gefa:
1- Get product links: http://localhost:3000/product/GEFAProdlinks
2- Get all product's information : http://localhost:3000/product/GEFAProdInfos
To get the Products from Samson:
1- Get category links: http://localhost:3000/product/SamsonCategoryLinks
2- Get all product's links : http://localhost:3000/product/SamsonProdLinks
3- Get all Product's Information : http://localhost:3000/product/SamsonProdInfo