GithubHelp home page GithubHelp logo

whichone-datingapp's Introduction

whichone-datingapp

Whichone is a dating app which you compare people. And you will get notification when someone likes you. Then you can add them on facebook or send direct message.

This project developed just for fun. If you want to make it better, please do not hesitate. Feel free to fork , develop and publish. App is available only android market. Download from here.

#STEP 1

Download SQL Script from here. This DB basicly records 3 table.

  • Person : keeps user information
  • User Matches : Every single match stores in this table. When some new user registered. Stored procedure does its job and insert every matches to this table. So matches are not created dynamicly. New user registered, procedure insert every binary combinations to here.
  • Match Votes : holds information about; who voted, which match and winner.

#STEP 2

Download web services from here.

You have to update these webservices with your DB information. Update connection information of every service file.

$con = new mysqli("localhost","USER_HERE","PASSWORD_HERE","DB_HERE");

Create new service key and put it YOUR_SERVICE_KEY_HERE

...
if($_POST['key'] == 'YOUR_KEY_IS_HERE'){
...

Service key will be used on android development to secure webservices.

#STEP 3 App is using Parse api to push notification. First, you need to get client key and app id from Parse and replace it with below code APP_ID and CLIENT_KEY. Parse is simply let us to use push notification.

Application.class

Parse.initialize(this, "APP_ID", "CLIENT_ID");

#STEP 4 You need to register your app to developer facebook. They will give you app_id. Put it to you res/string.xml file.

<string name="facebook_app_id">app_id_here</string>

#STEP 5

Now, we need to add webservice links and webservice key to application. Edit your ApiConstant class with your webservice and key information.

public class ApiConstants {

    public static String KEY = "YOUR_SERVICE_KEY_HERE";

    public static String URL_NEW_USER = "____YOUR_BASE_URL_HERE_____/addNewUser.php";
    public static String URL_GET_WINS = "____YOUR_BASE_URL_HERE_____/getMyWins.php";
    public static String URL_GET_NEW_MATCH = "____YOUR_BASE_URL_HERE_____/getNewMatch.php";
    public static String URL_VOTE_MATCH = "____YOUR_BASE_URL_HERE_____/voteMatch.php";
...

whichone-datingapp's People

Contributors

iammert avatar

Watchers

James Cloos avatar Shaw Yan avatar Yan Shaw avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.