Skip to content
πŸ• UBCEats: A web portal for food items at UBC
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.idea
logs
private
public
src/ubceats
templates
.DS_Store
.gitignore
CONTRIBUTING.md
README.md
composer.json
composer.lock
docker-compose.yml
phpunit.xml

README.md

UBCEats.ca πŸ§€πŸŒ­πŸ•

Prerequisites

Before getting started with UBCeats you will need PHP7 and composer installed. You will also need a web server. UBCeats works with Apache and the builtin PHP web server out of the box.

Getting the code

$ git clone git@github.com:ubceats/foodfoodfood.git
$ cd foodfoodfood

Installing dependencies

$ composer install
OR
$ php path/to/composer.phar install

Config database connection

To tell UBCEats how to connect to your database you must create a file called db.json in the main project directory. The content should be of the format.

{
  "hostname": "sql.example.com",
  "user": "db_username",
  "password": "password123",
  "dbName": "db_name"
}

Provisioning the database

Upon completion of the project we will upload a final .sql file for provisioning the database.

Starting the app

If you are using the builtin PHP server, you can do

$ cd path/to/foodfoodfood
$ php -S localhost:8080 -t public public/index.php
You can’t perform that action at this time.