Skip to content

PeterHjHan/Pai

 
 

Repository files navigation

Pai

Description

Pai is a React Native Mobile App that allows one user to randomly connect to other users to make a friendship by scanning each users indivdiual QRcode. It uses the device's geolocation to calculate the difference of the distance and provide a color based indicator. There is no map to track each users.

Demo

Getting Started

  1. Clone this repo
  2. Run npm install
  3. Add the following code in node_modules/react-native-pulse/pulse.js before componentDidMount()
componentWillReceiveProps(props) {
      if(props.color != this.state.color){
          this.setState({
              color: props.color
          })
      }
  }
  1. Run knex migrate:latest
  2. Run knex seed:run
  3. Create a config.json in the root folder and write the following
  {
    ipv4: `your ip address (example: 192.123.456.20:)`
  }
  do NOT add the last . at the end, but put a colon
  1. Run the server node server.js
  2. Run the web-socket node ws-server.js
  3. Run the application expo start

Built With

Authors

See also the list of contributors who participated in this project.

About

React Native app, made to connect strangers through the power of game.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%