PHP Classes

File: readme.md

Recommend this page to a friend!
  Classes of uche   PHP News Website and API   readme.md   Download  
File: readme.md
Role: Documentation
Content type: text/markdown
Description: Documentation
Class: PHP News Website and API
Manage news articles for a site and access via API
Author: By
Last change:
Date: 3 years ago
Size: 639 bytes
 

Contents

Class file image Download

About

This is a simple news website and API developed using Laravel. You can add and delete news from the frontend. There are APIs to fetch all news and a specific news. To get started,

  • Git clone and cd to project folder
  • Run [composer install]
  • Set up your .env file with the appropiate credentials especially database credentials.
  • Run [php artisan migrate] for your migrations
  • Run [php artisan db:seed] to seed the news categories table.
  • Run [php artisan serve] to start your application and use accordingly.

API endpoints

  • GET /api/articles [fetch all news]
  • GET /api/article/{id} [fetch a specific news item]