A Blog Api created for the Courierplus - Backend Developer Assessment.
Step-by-step instructions to set up the project locally:
-
Clone the repository:
git clone https://github.com/pablo-codes/blog-api.git cd blog-api
-
Install dependencies:
composer install
- Generate an application key
php artisan key:generate
- Run the migrations
php artisan migrate
- Seed the database (i.e Data is needed in the table for some operations)
php artisan db:seed
- Serve the application:
php artisan serve
or TEST
php artisan test
- Click on the example in the post man request.
- Click on try.
- View Documentation to see expected responses for success and error.
- The Json file.
NB:Errors are logged in blog_api_error.log while info in blog_api.log