Skip to content

shacharke/GitMap

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

209 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A location based job board powered only by GitHub.

This demo explores the possibility of building a location based app by using only GitHub's cool ability to render GeoJSON files as - interactive, browsable, annotated maps (example), and the powerful GitHub API (Nicely wrapped by Github.js). You can think of it as a "serverless" GitHub architecture.

gitmap

How GitMap Works?

  • The static site is served by GitHub pages.
  • The main page loads a render.githubusercontent iframe which renders the map.geojson as a full screen map.
  • When publishing a new entry, your browser will execute the calls to GitHub API by using Github.js
  • A request will be sent by you to fork this repository.
  • The map.geojson file in the forked repository will be edited to contain the new published data.
  • A pull request will be created on your behalf, to merge the new data to the main repository.
  • Your pull request will be manually approved and merged, and the new data will show up on the map after a few moments.

GitHub Authentication

GitHub OAuth requires that a secret client key will be used to convert the GitHub user login code to the authorization token. Since it is considered unsafe to expose this key, instead of storing it in the webapp I had set up a small hook.io hook to do the conversion using the secret key. Because this architecture is very irregular I am not sure that the impact of exposing the client secret fully apply to it, so I will reconsider this in the future.

My first project with react

Me working with react

About

A location based job board powered only by GitHub -

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • JavaScript 89.6%
  • HTML 10.4%