Giter Site home page Giter Site logo

progressbars's Introduction

Progress bars React.js

App component: 1.5 hrs Tests: 6 hrs

Total: 7.5 hours.

Tech used.

  • Yarn as a package manager: Yarn has advantages over npm: You always know you're getting the same thing on every development machine It paralellizes operations that npm does not, and It makes more efficient use of the network. It may make more efficient use of other system resources (such as RAM) as well.

  • Jest as a test runner + snapshot tests + mock functions great documentation + community.

  • Enzyme for DOM tests: Using Enzyme with Jest makes writing tests for React applications a lot easier to assert, manipulate, and traverse your React Components' output. Selectors work similar to JQuery so very intuitive to use if you have that background.

  • Css modules for styles: CSS modules over sass.

    • CSS live in one place
    • Only apply to that component and nothing else.
    • BEM or SMACSS not required as the styles are applied to a specific component only
  • Axios for AJAX

    • Greate HTTP client for ajax calls features promises.
  • axios-mock-adapter

    • Required to mock ajac request and response in unit tests.
  • eslint-config-airbnb

    • used for JS linting guide.
  • Avoided the use of redux as a store as the App is only one component.

Next steps / features missing: - Styling of buttons and custom select box - Animation could use some easing. - Tooltips, Aria attributes for accessibility

To run:

  1. 'yarn install'
  2. yarn start'

To test:

  1. 'yarn test' or 'jest'

progressbars's People

Contributors

jsdelivrbot 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.