Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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: 2 days ago
JSON representation

This is a simple project written in Laravel

Awesome Lists containing this project

README

        

entec-2017 [![Latest Stable Version](https://poser.pugx.org/alustau/entec2017/v/stable.png)](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;

```