Skip to content

dimadesu/reactjs-wiki

Repository files navigation

reactjs-wiki

Single-page app utilizing Webpack, React.js, Redux, ES6 and WikiMedia API.

10 random pages are loaded on the initial load.

User can delete or bookmark a page inside the app.

When all pages are bookmarked or deleted a new set of random pages will be loaded and rendered on top of the list.

Features

  • Facebook React.js with Redux as Flux architecture implementation
    • react-redux - glue to bind to store state and actions with React
    • react-thunk - Redux middleware to allow asynchronicity (working with AJAX requests)
    • react-bootstrap - collection of Twitter Bootstrap components converted to React + styles
  • Written in ES6 (ES2015) thanks to Babel
  • Webpack hot module replacement is helpful during developing. When source files are changed and rebuild new modules replace the old ones in the browser keeping the state of the app and without triggering full page reload
  • Data is received from live API using JSONP
  • Bookmarks are stored to browser's local storage, which allows restarting the browser without losing data
  • HTML and styles based on TODO MVC https://github.com/tastejs/todomvc
  • Basic testing setup with Mocha

Starting app

  • npm i
  • npm start

Running tests

Unix

npm run test:unix

Windows

npm run test:win

Improvement ideas

  • Technical features
  • Features
    • Display loading icons while fetching data
    • Organize bookmarks in folders
  • UI
    • Replace checkbox with a star icon
    • Support for different resolutions (responsiveness with media queries)
  • Fix tests
  • Optimizations
    • Don't save extra data to local storage
    • Remove unused code (start with style classes)
    • Benchmark build process
    • Consider using CDN for some files
    • Minification
  • Refactor
    • Abstract AJAX requests
    • Migrate styles to preprocessor
    • Folder structure

Tested

  • Mac OS X Yosemite v10.10.4, 64-bit, Google Chrome 45, Node.js v4.1.0
  • Windows 7, 64-bit, Google Chrome 46, Nove.js v4.2.1

About

Single-page app utilizing Webpack, React.js, Redux, ES6, WikiMedia API.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published