malaymehta / laravel-nick-test

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

About laravel News App

Installation Steps:-

  • Get Clone From https://github.com/malaymehta/laravel-nick-test Repository.

  • Go to Project Root Directory then run command composer install.

  • If Previous Command Throws error then run composer install --ignore-platform-reqs.

  • Create .env File by following commands:-

    • cp .env.example .env.
    • php artisan key:generate
    • Create Mysql Database and give privileges to app by editing .env file.
    • Add Application Email Related Configurations.
  • To Create Fresh Database Tables Run Command php artisan migrate.

  • Add Test Data by running this following command.


RESTful API Configuration

  • To Create New Post import POSTMAN REST Api Collection that Provided in root directory of this project with file name postman_collection.json.
  • Go to Collection Variables and add secretKey that you recently added on .env file with name of "API_HEADER_SECRET_KEY" of this project.
  • Update Base Url Variable by your Application Domain.
  • In Postman Client After Import Collection Got to {{baseUrl}}post/create Request and add form data. and click on submit button to test api.
    • On API Response Status 200, System will send email to all subscribed users for related website along with provided title and content.

      • Now You are All set! Thanks to Invest your valuable time.

About


Languages

Language:PHP 82.6%Language:Blade 16.5%Language:Shell 0.9%