Git Product home page Git Product logo

reactjs-wiki's Introduction

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

reactjs-wiki's People

Contributors

dimadesu avatar

Watchers

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