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

PetrKubes97/ioweyou-server

Repository files navigation

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 git@github.com: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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published