Skip to content

elefevre/devfriendlyplaces

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Dev friendly places

A collection of nice places where developers can work fine and some useful informations about these places (wifi ? power ? ...) on the map of a location.

Current locations

Contribute

Add places to an existing location

That is easy, just edit the json file locations/yourlocation.json and submit a pull request (where yourlocation is the name of your location).

Add a new location

There are two steps:

  • add your location information in the locations/locations.json file. Look how other locations are defined. All field are mandatory.
  • create the new locations/yourlocation.json file, see the example below.

Exemple of yourlocation.json

yourlocation.json example, to adjust to your needs:

{ "places": [
    {
      "name": "Coworking Reykjavik",
      "openHours": "24/7",
      "lat": 64.157015,
      "lon": -21.941714,
      "address": "Fiskislóð 101 Reykjavík",
      "type" : "coworking",
      "power": {"available": true, "comment": "look under the table"},
      "wifi": {"available": true, "comment": "ask people around to get the code"},
      "url": "http://www.reykjavikcoworking.is/",
      "comment": "noisy at lunch hours"
    },
    {
      "name": "Another stuff... etc.",
      "lat" : 43.607378,
      "lon" : 1.4399286
    }
  ]
}

please note:

  • The places is a list, you can append several places.
  • For more readbility, the fields "name", "lat" and "long" are mandatory. Add as many details as needed to provide complete information.
  • "comment" are optional

Once your pull request is merged and deployed, your map will be accessible at http://yourlocation.devfriendlyplaces.net.

Improve code / add feature

Open issue, fork, commit and pull request. But you already know that :)

Please, don't improve code/add new feature and add new places/locations in the same pull request.

Unit testing

We now can run unit tests against devfriendlyplaces code. You can start them by two ways:

  • from your favorite browser, open the file test/index.html
  • from the console
    • you first need to have a valid npm installation. Then
      • npm install -g mocha
      • npm install mocha-phantomjs
    • then ./node_modules/mocha-phantomjs/bin/mocha-phantomjs ./test/index.html

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 41.3%
  • CSS 36.8%
  • HTML 21.9%