Simple REST API where a patient can make a medical appointment and a doctor can confirm.
- Prerequisities
- Clone project and enter to folder:
git clone https://github.com/themey99/api-medical-appointments.git && cd api-medical-appointments
- Install dependencies:
composer install
- Copy or Create .env:
cp .env.example .env
- Set your database config
DB_HOST=
DB_PORT=
DB_DATABASE=
DB_USER=
DB_PASSWORD=
- Create your databse and import the SQL file
- Start server:
php -S localhost:8000 -t public/
- Test your API in Postman
- 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
- Build image:
docker-compose build
- Start containers:
docker-compose up -d
- Install dependencies:
docker-compose exec -u "$(id -u):$(id -g)" app composer install
- Copy or Create .env:
cp .env.example .env
- Set your database config
DB_HOST=
DB_PORT=
DB_DATABASE=
DB_USER=
DB_PASSWORD=
- Open in browser adminer
- Create your databse and import the SQL file
- Test your API in Postman