alustau / entec2017
The Laravel Framework.
v2.1
2018-03-19 00:01 UTC
Requires
- php: >=5.6.4
- laravel/framework: 5.4.*
- laravel/tinker: ~1.0
Requires (Dev)
- fzaninotto/faker: ~1.4
- mockery/mockery: 0.9.*
- phpunit/phpunit: ~5.7
- dev-master
- v2.1
- v2.0
- v1.0
- dev-issue/12-add-docker
- dev-issue/16-create-query-builder-appointment
- dev-issue/14-refactor-interface-appointment
- dev-issue/10-create-query-builder-doctor-service
- dev-issue/8-create-interface-doctor-index
- dev-issue/5-remove-validation-logic
- dev-issue/3-create-unit-test-appointment-controller
- dev-issue/1-unit-test-doctor-controller
This package is not auto-updated.
Last update: 2024-11-04 18:07:54 UTC
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;