Coder Social home page Coder Social logo

mappo-web's Introduction

Mappo web interface

A web interface for Mappo, to display JSON and IGC (paragliding) GPS tracks on a map, and allow upload of new tracks via a RESTful API. Backend in Go and frontend in React. In order to serve pre-built client JS and CSS files from webpack, wwhose names are not static, the Go server reads the relevant filenames from asset-manifest.json and passes them to the html template for rendering. Updating the frontend build requires just a server restart, and meantime a development setup can co-exist at the traditional http://localhost:3000 .

Tools used:

screenshot

See the app demo hosted here: https://mappo-web.herokuapp.com/

Install & run locally

Clone the repo:

$ git clone https://github.com/nguest/Mappo-Web.git
$ cd mappo-web

There are two parts:

CLIENT SIDE

The client side which is built as below,

$ cd client
$ yarn
$ yarn build

You will also need to create two environment variables, which should be available from the shell in which you start the app:

MAPBOX_API_KEY=<xxxx>
CESIUM_ACCESS_TOKEN=<xxxx>

SERVER SIDE

Create a Postgresql DB

You will need Postgres to be installed and running, e.g via brew install postgresql

$ createDB mappo

The server can be run in a number of different ways, e.g.:

$ cd ..
$ go run *.go

SEE IT IN ACTION

Visit http://localhost:10000 in your browser

Todo

  • Upload trackfiles to server
  • Build IGC and JSON file parsers
  • Display tracks in a list and get track details for display on the map on listitem click
  • Altitude graph in D3
  • Implement API Authentication
  • 3D Mapping with Cesium
  • Calculate FAI and OLC triangle and other flightypes
  • Save & retrieve tracks to/from cloud storage
  • Implement SPA router clientside

mappo-web's People

Contributors

nguest avatar

Watchers

 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.