Data Sharing Api Project
A demonstration project to portray how to share data across multiple api endpoints in a laravel app. The tutorial, written on medium, can be found here.
Important Note
The repository contains two branches, the main branch and the tutorial branch. The main branch contains the end product of the tutorial while the tutorial branch will enable you to follow along with the tutorial.
Project Setup
- Clone the project
git clone git@github.com:kiptoo-korir/data-sharing-api-tutorial.git
- Setup the environment variables and setup the database
- Install the dependencies using composer
composer update
- Migrate the tables
php artisan migrate
- Seed the data
php artisan db:seed
- Checkout to the branch you need
- Run the app using
php artisan serve