Skip to content
This repository has been archived by the owner on Apr 19, 2023. It is now read-only.

Latest commit

 

History

History
executable file
·
65 lines (48 loc) · 1.95 KB

README.md

File metadata and controls

executable file
·
65 lines (48 loc) · 1.95 KB

IOweYou - server

This is the backend application which runs IOweYou website and provides an API for the Android app. You can find its source code here.

Installation

  1. Set up a web server with PHP and MySQL

  2. Clone the GitHub repository:

git clone [email protected]:PetrKubes97/ioweyou-server.git
  1. Create a MySQL database using 'utf8mb4_bin'.

  2. Create config.local.neon in the app/config folder with the following contents:

dbal:
    driver: mysqli
    host: 127.0.0.1
    database: yourdbname
    username: root
    password: root

facebook:
    appId: "your_app_id"
    appSecret: "your_secret"
    permissions: [public_profile, email, user_friends]
    graphVersion: v2.8
  1. Run migrations.
php www/index.php migrations:reset
  1. Make sure that log and temp are writable.
chmod -R 777 temp; chmod -R 777 log;
  1. At this point, you should be able to open the web page at localhost/ioweyou-server/www.

Testing the API

The API address is http://localhost/ioweyou-api/www/api/. See apiary.apib for possible requests.

You can get the Facebook Access Token and ID at Facebook Graph API Explorer. Click get token and check "user_friends" and "email".

Libraries

License

Apache