This is the source code of the Wunderbar API. It is built in PHP using Laravel.
- Install PHP 7.x on your laptop
- Install Composer
- Install Laravel
composer global require "laravel/installer"
- Clone the repository
git clone https://github.com/fishsticks-humber/wunderbar-api.git
- Go to repository
cd wunderbar-api
- Create a your environment variable file from the example
- For Windows
copy .env.example .env
- For Linux/macOS
cp .env.example .env
- For Windows
- Add your database details and API details to your
.env
file
# All your sql database details should go here
DB_CONNECTION=mysql
DB_HOST=<your database port. it's usually 127.0.0.1>
DB_PORT=<your db port. it's usally 3306>
DB_DATABASE=<your datebase name>
DB_USERNAME=<your database username>
DB_PASSWORD=<your database password>
# Details for Yelp API
YELP_CLIENT_ID=<add your yelp client id here>
YELP_CLIENT_SECRET=<add your yelp client secret here>
# Details for Google Places API
GOOGLE_PLACES_API_KEY=<add your google places api key here>
- Install all composer dependencies
composer install
- Update composer lock file
composer update
- To start the development server
php artisan serve