GithubHelp home page GithubHelp logo

alexpi007 / leaftlet-react-redux-map Goto Github PK

View Code? Open in Web Editor NEW
2.0 2.0 0.0 1.63 MB

This app is developed with ReactJS, Redux and React-Leaflet. Redux and ImmutableJS manage different marker actions on a map.

HTML 9.27% JavaScript 78.45% SCSS 12.29%

leaftlet-react-redux-map's Introduction

Welcome to Leaftlet-React-Redux-Map!

This app is developed with ReactJS, Redux and React-Leaflet. Redux and ImmutableJS manage different marker actions on a map. Built with CRA!

Install

Installing and running the project: $ npm install and $ npm start, this last provides compiling and watcher for .scss file! I used LTS version of node - v10.14.0 (npm v6.4.1).

Note: compiled css will be ignored by the.gitignore file.

Build

Building the project: $ npm run build

Main packages

I used the following node packages:

  • create-react-app as boilerplate with bundled eslint.
  • node-sass-chokidar in order to adding a CSS preprocessor.
  • immutable and redux-immutable in order to allow combineReducers working with Immutable.js state.
  • redux and react-redux.
  • react-leaflet and leaflet to fix a library issue documented here --> PaulLeCam/react-leaflet#453 .
  • redux-logger to log actions and State, I extended it also to works with Immutable.js data flux.

Note: usually I also use redux-saga to manage API requests and create tasks, but in this case this library was not necessary.

Persist markers in localStorage

I added two functions in "/src/utils" folder so that the app will save State tree on localStorage every time subscribe(listener) intercept a Store change (dispatched action).

That's all, I hope you enjoy it!

paypal

leaftlet-react-redux-map's People

Contributors

dependabot[bot] avatar alexpi007 avatar

Stargazers

 avatar Ryo Lambert avatar

Watchers

James Cloos 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.