benetech / MathShare

MIT License
9 stars 3 forks source link

Transition to a more modern framework for frontend development #173

Closed johnhbenetech closed 6 years ago

johnhbenetech commented 6 years ago

I believe we had discussed vue.js, but I'm open to whichever framework we think can get the job done.

pgesek commented 6 years ago

@johnhbenetech we are mostly leaning toward using ReactJS, due to better maturity and more experience with it across the team, as well as potential for using React Native for mobile apps in the future.

If you are fine with moving to React, I would propose that we use an incremental approach, where we would move to React without necessarily blocking other tasks.

1) Add React & Webpack as the build system 2) Make the whole page one React component, still heavily using JQuery. Anything new (hopefully can be avoided) would be added as React components. 3) Transition the MathLive piece to a React wrapper component 4) Transition other pieces to React components 5) Add additional niceties like eslint, uglification, etc.

What do you think ?

johnhbenetech commented 6 years ago

Works for me! You guys should feel free to create a different endpoint (not index.html) to hold the new version.

pgesek commented 6 years ago

@oskarhinc @afijal feel to start the work on this and split into smaller pieces if need be. Also feel free to correct my steps from above if you feel something is missing.

afijal commented 6 years ago

I guess it's a right time to close it