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.
- Clone this repo
- Run
npm install - Add the following code in
node_modules/react-native-pulse/pulse.jsbeforecomponentDidMount()
componentWillReceiveProps(props) {
if(props.color != this.state.color){
this.setState({
color: props.color
})
}
}- Run
knex migrate:latest - Run
knex seed:run - Create a
config.jsonin 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- Run the server
node server.js - Run the web-socket
node ws-server.js - Run the application
expo start
- Expo
- react-native-pulse
- pg
- Knex
- react-native-navigation
- axios
- kalmanjs
- haversine
- express
See also the list of contributors who participated in this project.
