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.
$ git clone [email protected]:ubceats/foodfoodfood.git
$ cd foodfoodfood
$ composer install
OR
$ php path/to/composer.phar install
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"
}
Upon completion of the project we will upload a final .sql
file for provisioning the database.
If you are using the builtin PHP server, you can do
$ cd path/to/foodfoodfood
$ php -S localhost:8080 -t public public/index.php