Skip to content
Permalink
develop
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time

Foodbank

Rules Engine and API for Feeding America / Foodbank Project. PHP and MySQL.

API

Everything is located in the /api directory. You will need composer installed.

The entire API runs from index.php. This way everything routes to http://foodbankurl.com/api/.

Propel was used to generate the ORM. The ORM lives under:

/api
  /generated-classes  # All of the main ORM classes used in our application.
  /generated-conf     # Configuration for the ORM
  /generated-sql      # Explicit creation queries for our DB structure.

The Routing is handled through the routes folder, and are Slim routes.

Development

cd api
composer install
php -S localhost:8000

A Foodbank.postman_collection.json file has been added. You can import this to Postman to test routes.

Helpful URLs

Propel ORM Calls

PHPMyAdmin

Routing with Slim

Contact

Joel Salisbury - Faculty Advisor

Brian Kelleher - Project Manager

Tim Morris - Developer

Gabe Rogan - Developer