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

https://github.com/filipe1309/ctv-news-api


https://github.com/filipe1309/ctv-news-api

lumen news php php8 redis rest-api

Last synced: 2 months ago
JSON representation

Awesome Lists containing this project

README

          

#

CTV News API :newspaper:


Lumen
PHP

## 💬 About

This project was developed following **Level PHP** youtube playlist "[Lumen Microframework](https://www.youtube.com/playlist?list=PLTZ2g-iFpCUuNWZ7wtDoxbKpSAChDyS0o)".

## :computer: Technologies

- [Lumen](https://lumen.laravel.com/)
- [Docker](https://www.docker.com/)

## 🧰 Architecture

### DB ER Diagram

![alt](public/db-er-diagram.png)

### Service-Repository Pattern

## :octocat: Setup

### Installation

```sh
# Clone this repo
git@github.com:filipe1309/ctv-news-api.git

# Enter project folder
cd ctv-news-api
```

#### Run the migrations to create db tables on db container

```sh
./bin/runenv
docker exec -t ctv-news-api_php_1 php artisan migrate
```

### 🏃 Runnning

```sh
./bin/runenv
```

The app will run at: http://localhost:5001

### Testing

```sh
docker exec -it ctv-news-api_php_1 php ./vendor/bin/phpunit
```

## About Me





---


Done with ♥ by Filipe Leuch Bonfim 🖖