/mercado-libre-challenge

Primary LanguageJavaScriptMIT LicenseMIT

Mercado Libre

Environment

  • Node.js v12.17.0
  • Yarn 1.6.0

Quick Start

  1. Install dependencies
yarn install
  1. To run the backend app
yarn start:server
  1. To run the frontend app
yarn start:client
  1. Unit test
yarn test

Docs

  1. UI component library :
yarn storybook
  1. API swagger docs
http://127.0.0.1:8080/api-docs/

Folders structure

  • Storybook config .storybook/*
    • Define every component story .storybook/stories
  • Frontend app client/*
    • Assets client/assets/*
    • UI components client/components/*
    • Bootloaders, api config and theme setup client/config/*
    • Custom Hooks client/hooks/*
    • UI layouts client/layouts/*
    • Pages client/pages/*
    • Routing and root component client/root.js
  • Backend app server/*
    • Bootloaders, express and api config server/config/*
    • Repositories are classes acting as the source of the data. server/repositories/*
    • Resolvers is intended to handle the request logic and send back a response server/resolvers/*
    • Serializers format the data with an specific structure server/serializers/*