GithubHelp home page GithubHelp logo

davidecarvalho / demolay-event-management Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 346 KB

System to help on managing demolay's events on São Vicente

HTML 7.10% JavaScript 92.90%
firebase firebase-realtime-database hybrids redux single-spa web-components

demolay-event-management's People

Stargazers

 avatar

Watchers

 avatar  avatar

demolay-event-management's Issues

Technical debts

Okay, now that I'm not beeing pushed to deploy it ASAP, I can start to take care of the things i've done. I'll try to make a more react-ish approach:

  • Components are too big, need to make them smaller
    • Entrada Component
    • Comprar Component
    • Caixa Component
  • Review how components are connected with Redux
    • Put redux properties inside an object called props;
    • Put component inner state inside an object called state.
  • Route components are beeing used as containers, and its passing EVERYTHING to the child components, this is making the components hard to maintain
    • See which child components can be container components;
    • Route components MUST NOT be containers, they are just High Order Components, and their object is just to compose the view.
  • Some actions are using getState from redux-thunk, this is a really bad practice, 'cause make testing actions really hard:
    • Review actions logics, so they become responsable for only one stuff, or compose actions with other functions inside it, breaking the logic into various functions.
  • Since I cannot test web-components behavior with stuff like mocha or jest, I can at least test redux behavior
    • Test actions
    • Test reducers
  • Change from realtime database to Cloud Firestore

And if everything is alright, I can think in something to test the components, something like Cypress

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.