alustau/entec2017

The Laravel Framework.

Installs: 14

Dependents: 0

Suggesters: 0

Security: 0

Stars: 9

Watchers: 2

Forks: 0

Type:project


README

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;