Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ronald-kimeli/laravel-newsaggregator-api
This a backend api for laravel new aggregator. Fully api development
https://github.com/ronald-kimeli/laravel-newsaggregator-api
docker dockerized-laravel laravel-newsaggregator laravel10 mews-aggregator news-aggregator-api
Last synced: about 1 month ago
JSON representation
This a backend api for laravel new aggregator. Fully api development
- Host: GitHub
- URL: https://github.com/ronald-kimeli/laravel-newsaggregator-api
- Owner: ronald-kimeli
- Created: 2023-06-06T06:26:59.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2023-06-17T14:00:41.000Z (over 1 year ago)
- Last Synced: 2023-08-07T10:57:45.244Z (over 1 year ago)
- Topics: docker, dockerized-laravel, laravel-newsaggregator, laravel10, mews-aggregator, news-aggregator-api
- Language: PHP
- Homepage:
- Size: 734 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# React Bakend news-aggregator
## Installation
* clone this project into your machine
```bash
git clone https://github.com/KimelirR/backend-laravel-api.git
```* clone this project into your machine
```bash
cd backend-laravel-api
```* create environment
```bash
cp .env.example .env
```* Dockerize by building and running on detached mode
```bash
docker compose build --no-cache && docker compose up --force-recreate -d
```* Clear cache first of all
```bash
docker compose exec lara php artisan config:clear
```* Test laravel migration and the app container name is lara.
```bash
docker-compose exec lara php artisan migrate:fresh --seed
```* Interact with database cli as a root user using command below, container name db.
```bash
docker compose exec db mysql -u root -p
```* Run the application and on your Browser run .
```php
http://localhost:8000
```* Load newsapidata to our database by refreshing code below.
```bash
http://localhost:8000/api/fetchnewsapi
```* Load fetchthegurdian to our database by refreshing code below.
```bash
http://localhost:8000/api/fetchthegurdian
```* Load fetchnewyorktimes to our database by refreshing code below.
```bash
http://localhost:8000/api/fetchnewyorktimes
```> End
Then, on the other way manually
** Install project dependencies
```php
composer install
```* Generate key for laravel new application you have installed.
```php
php artisan key:generate
```* Run the application
```php
php artisan migrate:fresh --seed
```* Run the application
```php
php artisan serve
```* Load newsapidata by running same http routes just like above
> Or import news_aggregator.sql database to the database and run
* The Frontend Image
![alt text](https://github.com/KimelirR/backend-laravel-api/blob/master/public/images/newsaggregator.png?raw=true)