Git Product home page Git Product logo

dminc's Introduction

Welcome to dminc-app ๐Ÿ‘‹

Version

Install

npm install

Usage

npm run start

Run tests

npm run test

About the app

The application initially displays the shows and allows the user to access to the show details related to the selected show.

show-list-light

Additionally, redux was used to manage states and some components were tested. As an extra, the dark-light theme option and the use of localstorage for data persistence also were added.

show-list-dark

Just click on the show to go to the details section:

show-detail-light

Which also has its dark version:

show-detail-dark

The button at the right corner makes possible to return to the shows list section, this action is achieved using the Route component from the react-router-dom library. For styling, the tailwindcss library was used as it makes it easy to implement theme selection throughout the application.

The following cases were taken into consideration,

given a wrong url the following message will be displayed:

fail-fetch-dark

When trying to access an undefined route, a Not found message is delivered but you can still go to the show lists using the back to shows button.

not-found-dark

All possible cases comes with their own respective dark-light theme option.

The application is made up of three main folders: Components, hooks and store and the UI folder, where there are reusable components.

folders

A custom hook were created to modify the theme, enabling refactoring and delegating specific tasks outside the components. The store folder contains the store management system (redux) which was used to centralize states, update and make them available through the components. The App.js file makes the call to obtain the information and renders the components. A possible improvement is to clean the App.js file, so that it only renders a single component (creating a Layout component for example) making it clear that this is its only function following the practice of making a component as specific and simple as possible.

Author

๐Ÿ‘ค Guido Stifani

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.