Clone the repository
git clone https://github.com/imalisusan/medbook-dev-backend
# Install required packages
composer install
# Generate app key
php artisan key:generate
Declare database configuration values in the .env file
# Run database migrations
php artisan migrate
# Generate dummy application data for patients, genders and services
php artisan db:seed
# Start the application
php artisan serve
The API exposes the following endpoints:
- GET
/api/patients
- View the seeded patients - POST
/api/patient
- Create a new patient