Skip to content

Web app for discovering and joining activities with friends

Notifications You must be signed in to change notification settings

wildabyss/Onboard

Repository files navigation

Onboard

Working Environments

This application has been tested with PHP 5.6, Chrome 15 and above, Firefox 4.0 and above, and IE 8.0 and above.

Required Vendor Packages:

  1. Composer
  2. Facebook PHP API
  3. Google+ PHP API
  4. Propel
  5. Swiftmailer
  6. Klein

Web Server Configuration:

  • Disable directory browsing

  • Configure /public_html as the web root

  • Must have the following rewrite rules implemented to enable Klein re-router:

    1. Rewrite the exclusion of the following regex to viewReroute.php ^(ajax.)|(..(css|gif|png|jpg|jpeg|js|ico))$

    2. Rewrite the inclusion of the following regex to ajaxReroute.php ^ajax.*$

    Configuration for IIS7 is included in the web.config file under /public_html/ directory. Configuration for Apache is included in the .htaccess file under / directory.

Initial Application Configuration:

  1. Install the required vendor packages using Composer, using /composer.json and versions as specified in /composer.lock.

  2. Create the following directories: /public_html/profile_pic_cache

  3. Configure the web server as per Web Server Configuration. Install MySQL.

  4. Modify /database/propel.yaml and /database/SQL/db_setup.sql for database username and password. Set up Propel and the MySQL database. Add Propel to the PATH variables.

  5. Setup the SQL database using /database/SQL/db_setup.sql and /database/SQL/onboard.sql. Note that onboard.sql can be replicated using /database/schema.xml from Propel.

  6. Modify /loading.php to set error_reporting to production settings.

  7. Create /onboard_settings.json under the root directory with the following content, replacing the entries accordingly:

    { sites:[ { "fb_app_id": "xxxx", "fb_app_secret": "xxxx", "domain": "domain1.com" }, { "fb_app_id": "xxxx", "fb_app_secret": "xxxx", "domain": "domain2.com" } ] }

Updating Database Schema:

Use /database/schema.xml to update the database structure.

In the directory run: propel config:convert to generate the config.php propel model:build to generate the PHP database model propel sql:build to generate the sql script

In the top directory run: composer dump-autoload to generate the composer autoload

Production Release:

Avoid the following directories/files:

  1. /onboard_settings.json
  2. /public_html/profile_pic_cache
  3. /database/config.php

About

Web app for discovering and joining activities with friends

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published