Skip to content

meiyerDev/api-medical-appointments

Repository files navigation

REST API without Frameworks medical appointments

Simple REST API where a patient can make a medical appointment and a doctor can confirm.

Steps to install

Without Docker

  1. Prerequisities
  • Clone project and enter to folder:
git clone https://github.com/themey99/api-medical-appointments.git && cd api-medical-appointments
  1. Install dependencies:
composer install
  1. Copy or Create .env:
cp .env.example .env
  1. Set your database config
DB_HOST=
DB_PORT=
DB_DATABASE=
DB_USER=
DB_PASSWORD=
  1. Create your databse and import the SQL file
  2. Start server:
php -S localhost:8000 -t public/
  1. Test your API in Postman

With Docker

  1. Prerequisities
  • Install docker in your workstation
  • Install docker-compose in your workstation
  • Clone project and enter to folder:
git clone https://github.com/themey99/api-medical-appointments.git && cd api-medical-appointments
  1. Build image:
docker-compose build
  1. Start containers:
docker-compose up -d
  1. Install dependencies:
docker-compose exec -u "$(id -u):$(id -g)" app composer install
  1. Copy or Create .env:
cp .env.example .env
  1. Set your database config
DB_HOST=
DB_PORT=
DB_DATABASE=
DB_USER=
DB_PASSWORD=
  1. Open in browser adminer
  2. Create your databse and import the SQL file
  3. Test your API in Postman

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published