These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.
The API documentation can be found at the following url: https://documenter.getpostman.com/view/22569385/2s93K1pez1
- Clone the repository
git clone https://github.com/Ojsholly/hospital-backend-api.git
- Install dependencies
composer install
- Create the project environment file
cp .env.example .env
- Generate a new application key
php artisan key:generate
- Add mailing and database credentials.
Add mailing and database credentials to the .env file. Mailtrap is recommended for local and testing environments.
- Seed the Database
php artisan migrate:fresh --seed
- Start queue listener. Open a fresh terminal window in the project directory and run the following command.
php artisan queue:listen
The project can be hosted on any VPS via the following steps:
- Install PHP and Composer on the VPS.
- Clone the repository.
- Install dependencies.
- Create the project environment file.
- Generate a new application key.
- Add mailing, storage (cloudinary) database, and payment credentials.
- Seed the Database.
- Start queue listener.
- Configure the web server to serve the project.
The project includes a PHPUnit test suite. To run the tests, execute the following command:
php artisan test
- Add a feature to allow users to view their appointment and transaction history.
- Add a feature to allow users to view their profile.
- Add a feature to allow the admins to see all users and doctors.
- Add a feature to allow the admins to view all appointments and transactions.
- Add a feature to allow the admins to view all appointments and transactions for a particular user.
- Add a feature to allow the admins to view all appointments and transactions for a particular doctor.
- Add a feature to allow the admins to view all appointments and transactions for a particular date.
- Add a feature to allow the doctors withdraw their earnings to their bank accounts.