Skip to content

simonrobson/canyouseethemountain

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

#Setup

  • Install postgres and postgis. apt-get install postgres postgis
  • Create a database in postgres. createdb a_database_name
  • Enable postgis extensions. psql -d a_database_name -c "CREATE EXTENSION postgis;"
  • Initialize the database. psql -d a_database_name < db/schema.sql
  • Copy app/db/config/db.example.js to app/db/config/db.js and modify to taste.

#API

POST /checkins

Payload

{
  checkin: 
  { 
    coords:
    {
      accuracy: 25000,
      altitude: null,
      altitudeAccuracy: null,
      heading: null,
      latitude: 18.806478,
      longitude: 98.94661500000001,
      speed: null
    },
    timezone: -7,
    landmark_id: 1,
    visibility: 50
  }
}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published