https://github.com/alustau/entec-2017
This is a simple project written in Laravel
https://github.com/alustau/entec-2017
appointment doctor elegance laravel laravel-framework prophesize simple solid-principles tdd
Last synced: about 1 year ago
JSON representation
This is a simple project written in Laravel
- Host: GitHub
- URL: https://github.com/alustau/entec-2017
- Owner: alustau
- Created: 2017-06-20T01:56:57.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2018-07-11T11:40:38.000Z (almost 8 years ago)
- Last Synced: 2025-04-12T13:12:44.525Z (about 1 year ago)
- Topics: appointment, doctor, elegance, laravel, laravel-framework, prophesize, simple, solid-principles, tdd
- Language: PHP
- Homepage:
- Size: 541 KB
- Stars: 9
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
entec-2017 [](https://packagist.org/packages/alustau/entec2017)
=============
Entec 2017 is a simple project with goal to use TDD and SOLID principles
## Table of Contents
- [Features](#features)
- [Installation](#installation)
## 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:
```shell
$ git clone https://github.com/Alustau/entec-2017.git
```
2- Enter in project folder.
```shell
$ cd entec-2017
```
3- Checkout on stable version.
```shell
$ git checkout tags/v2.1
```
4- Install the dependencies.
```shell
$ composer install
```
5- Set up your .env through .env.example.
6- Generate a key for .env file.
```shell
$ php artisan key:generate
```
7- Run database migration .
```shell
$ php artisan migrate
```
8- Start server using:
```shell
$ php artisan serve
```
## AppServiceProvider
You can swap between Query Builder or Eloquent services
```php
namespace App\Providers;
use ...;
class AppServiceProvider extends ServiceProvider
{
protected $type = 'Eloquent' // Query Builder or Eloquent;
```