Git Product home page Git Product logo

hospital-backend-api's Introduction

Getting Started

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

Prerequisites

Installation

  1. Clone the repository
    git clone https://github.com/Ojsholly/hospital-backend-api.git
  1. Install dependencies
    composer install
  1. Create the project environment file
   cp .env.example .env
  1. Generate a new application key
    php artisan key:generate
  1. Add mailing and database credentials.
    Add mailing and database credentials to the .env file. Mailtrap is recommended for local and testing environments.
  1. Seed the Database
    php artisan migrate:fresh --seed
  1. Start queue listener. Open a fresh terminal window in the project directory and run the following command.
    php artisan queue:listen

Deployment

The project can be hosted on any VPS via the following steps:

  1. Install PHP and Composer on the VPS.
  2. Clone the repository.
  3. Install dependencies.
  4. Create the project environment file.
  5. Generate a new application key.
  6. Add mailing, storage (cloudinary) database, and payment credentials.
  7. Seed the Database.
  8. Start queue listener.
  9. Configure the web server to serve the project.

Testing

The project includes a PHPUnit test suite. To run the tests, execute the following command:

 php artisan test

Improvements

  • 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.

hospital-backend-api's People

Contributors

ojsholly avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.