Giter Club home page Giter Club logo

showcase-1's Introduction

Demo

Stopped

Install and run

  1. Navigate to project root path
  2. Run npm i
  3. Run npm run start

Note. Make sure that you have MongoDB installed and running.

Screenshot

Libs and Technologies

Express.js is server-side Node.js framework running along with MongoDB as NoSQL database. Mongoose is used as ORM layer for manipulating database documents. Server-side app is connected with client via WebSockets with help of socket.io.

Client-side is a SPA with immutable app state stored in Redux Store. State is managed by action creators and reducer. React is used as presentation layer framework.

Geographical map is created and managed by ArcGIS JS API.

Mocha is used as a BDD framework to describe specifications along with chai testing utilities.

Project is written in JavaScript with benefits of ECMAScript 6 standard provided by Babel. Webpack is used as project bundler along with server middleware dev tools such as React Hot Loader and hot module replacement.

Styles are preprocessed by Less.

Lazy loading

Lazy loading of spots is made in a primitive way. Each time map bounds is changed (map has been moved or zoomed), a socket.io-request is made to a server. Bunch of received spots are being compared to existing ones and if there is something new, spots are re-rendered.

This may be optimized in different ways:

  • Using tile-based loader: map view is split into a number of small square "tiles" and separate request is made for each tile. This enables use of browser cache.
  • Using complex multi-polygon area as sum of loaded bounds and subtract it out of current bounds before making request.
  • Using ArcGIS Map Service or ArcGIS Feature Service.
  • Using another cartographical API (i.e. Yandex.Maps Remote Object Manager).

showcase-1's People

Contributors

ajaxy avatar

Stargazers

 avatar

Watchers

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