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.
- Go To following file:-
Database\Seeders\DatabaseSeeder.php
And Replace Email Address by actual email address. - Run Command
php artisan db:seed
.
- Go To following file:-
- 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.
-