Giter Club home page Giter Club logo

valantis_test-task's Introduction

Valantis product list ✨✨✨

Этот проект был создан в целях подачи заявки на вакансию в компании Valantis.

The project was created to apply for a vacancy at Valantis.

Как посмотреть проект:

Так как у домена API нет SSL-сертификата, чтобы посмотреть проект нужно предварительно разрешить в настройках браузера делать запросы к http://api.valantis.store:40000/. Я использую Chrome, в других браузерах настраивается аналогичным способом.

  1. Набрать в адресной строке: chrome://flags/
  2. В поиске набрать: Insecure origins treated as secure.
  3. Вставить в поле http://api.valantis.store:40000/
  4. Пометить Enabled.
  5. Перезайти в Браузер.
  6. Теперь можно перейти по ссылке ниже.

Посмотреть проект

Viewing the Project:

Since the API domain does not have an SSL certificate, to view the project, you need to allow requests to be made to http://api.valantis.store:40000/ in the browser settings. I use Chrome, and in other browsers, it can be configured in a similar way.

  1. Type in the address bar: chrome://flags/
  2. In the search, type: Insecure origins treated as secure.
  3. Enter the following URL in the field: http://api.valantis.store:40000/
  4. Check Enabled.
  5. Restart the browser.
  6. Now you can access the project through the following link

Tech-Stack:

  • TypeScript
  • React
  • Next.js
  • Redux toolkit

Описание:

На странице отображается список товаров с возможностью фильтрации по одному из фильтров: цена, название товара, бренд. Также реализована пагинация.

При отправке запросов на сервер в случае ошибки в консоль выводится комментарий и описание ошибки.

Первый рендер происходит на сервере, поэтому первая страница отображается мгновенно. Если следующая страница есть - она подгружается заранее. Загруженные страницы кэшируются.

Description:

The page displays a list of products with the ability to filter by one of the criteria: price, product name, brand. Pagination functionality is also implemented.

In case of errors when sending requests to the server, a comment and error description are output to the console.

The initial render occurs on the server, so the first page is displayed instantly. If the next page exists, it is preloaded. The loaded pages are cached.

Что можно улучшить

  • В консоле присутствует ошибка "A non-serializable value was detected in the state". Ошибка возникает из-за того, что в состоянии (state) приложения присутствует значение, которое не может быть сериализовано (не может быть преобразован в строку JSON) - Map.

Areas for Improvement

  • In the console, there is an error "A non-serializable value was detected in the state". The error occurs because the application's state contains a value that cannot be serialized (cannot be converted to a JSON string) - Map.

valantis_test-task's People

Contributors

mrspop avatar

Watchers

 avatar

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.