Skip to content

alustau/entec-2017

Repository files navigation

entec-2017 Latest Stable Version

Entec 2017 is a simple project with goal to use TDD and SOLID principles

Table of Contents

Features

  • Create a Doctor
  • List all Doctors
  • Update a Doctor
  • Remove a Doctor and its appointments
  • Create Appointment
  • List all Appointments
  • Remove Appointment

Installation

Version 1.0 has no patterns.

Version 2.1 - TDD, SOLID principles

1- Install this project running this:

$ git clone https://github.com/Alustau/entec-2017.git 

2- Enter in project folder.

$ cd entec-2017

3- Checkout on stable version.

$ git checkout tags/v2.1 

4- Install the dependencies.

$ composer install

5- Set up your .env through .env.example.

6- Generate a key for .env file.

$ php artisan key:generate

7- Run database migration .

$ php artisan migrate

8- Start server using:

$ php artisan serve

AppServiceProvider

You can swap between Query Builder or Eloquent services

namespace App\Providers;

use ...;

class AppServiceProvider extends ServiceProvider
{
    protected $type = 'Eloquent' // Query Builder or Eloquent;