Skip to content

edencakir/Hack4City

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Hack4City Hackathon - Team Carrots Travis Build Status

Endpoint base URL: http://54.163.77.75:8080 👾

© 2017 IZKA & Yasar University. All rights reserved.

Installing React Native App

Prerequsites

  • yarn
  • watchman
  • react-native-cli
    • yarn global add react-native-cli

Instructions

  1. Run yarn install
  2. Run react-native link
  3. Add sdk to local.properties

Debugging:

Using API

/getDuraks

Takes a station name as a parameter and then returns user count.

Response
{
   result: 'success',
   response: {
     message: 'Durak fetch success',
     data: docs
   }
}

/deleteAllDuraks

Takes a station name as a parameter and then deletes it.

Response
{
    result: 'success',
    response: {
      message: 'Cleared everything.'
    }
}

/addDurak

Takes a station name as a parameter and then adds it to the station list. Increments user count.

Response
{
      result: 'success',
      response: {
        message: 'Initial durak created, user set to 1.'
      }
}