This project is my challenge for a job at CargoX.
CargoX is the largest freight marketplace in Brazil!
The challenge is create a VueJS application usin de following API: Mocky API
- They like reactive views,
- They like components,
- They like responsive layouts,
- They like tests.
The following layouts must been created:
The API was moved to public/mocks instead of use Mocky.io because the mocks expired
- Old API: http://www.mocky.io/v2/5c7552e43100009c20c23450
- New API:
public/mocks/freight-details-<id>
A Second API was created to test different cases
- New API:
public/mocks/freight-summary.json
A Second Screen was created to navigate between cases
npm installnpm run devnpm run buildRun Unit Tests with Vitest
npm run test:unitRun End-to-End Tests with Cypress
npm run test:e2e:devThis runs the end-to-end tests against the Vite development server. It is much faster than the production build.
But it's still recommended to test the production build with test:e2e before deploying (e.g. in CI environments):
npm run build
npm run test:e2eLint with ESLint
npm run lint
npm run lint:fix- Create and Update Tests
- Put All Styles Into Variables (Design Tokens)
Status: I Got the Job 🚚


