Coder Social home page Coder Social logo

wallapop's Introduction

Wallapop Technical Test

Table of Contents


Getting Started

Follow the next instructions to get a copy of the project up and running in your local machine.

Prerequisites

  • Install LTS version of Node.
  • Yarn is optional but highly recommended.

Installation

Run the following commands:

git clone https://github.com/dfvalero/wallapop
cd wallapop
yarn

Development

To be able to develop, follow the next steps:

  • Copy the .env.example to a .env file:
cp .env.example .env
  • Run the following command:
yarn dev

After that, your app will be available at http://localhost:3000

CSS

I used Styled Components. There is also a reset and some global styles in src/components/GlobalStyles.tsx.

Testing

Unit tests

This app uses Jest to run Unit tests.

To run those tests, run the following command:

yarn test:unit

E2E

This app uses Cypress for all their E2E tests.

To run the tests, run the following commands:

yarn dev
yarn test:e2e:run

Tooling

This app uses husky in order to lint, typecheck and run all unit tests before pushing it to the repository.

Deployment

I'm using Netlify to deploy the site manually.

Last Stable Version: https://wallapop-test.netlify.app/

Notes

  • I didn't have time to implement Sorting. Sorry.
  • I didn't have time to unit test the Components. I added E2E tests for all the UI and business logic. I also added some unit tests for the context (business logic) and the utils.
  • I didn't add Keyboard events in the Selector component.
  • Menu UI is too big for mobile.
  • I didn't implement the "search match highlight" in the item components.

Next Steps

  • Add Sorting.
  • Add Components Unit tests.
  • Add Keyboard Events to Selector component.
  • Improve Menu UI.
  • Add "search match highlight" to Item component.
  • Add CI/CD

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.