This API provides resources to create, read, update and delete customers from a database.
The endpoints, sample requests and sample responses have been provided on this Postman documentation.
Clone repository
git clone https://github.com/iamwebwiz/customerbook-backend.git; cd customerbook-backend;
Install dependencies
composer install
Copy .env.example
to .env
cp .env.example .env
Generate app key
php artisan key:generate
Create a database and fill in the credentials in .env
DB_DATABASE=[yourDbName]
DB_USERNAME=root
DB_PASSWORD=
DB_HOST=localhost
DB_PORT=3306
Run migrations and seed the database for test data
php artisan migrate --seed
🎉🎉🎉