Skip to content

This is repository for packt coding test application

Notifications You must be signed in to change notification settings

pankaj0089/packt

Repository files navigation

Packt> Technical Task

Requirements

PHP >= 8.0

Composer >= 2.0

Installation

After cloning the git repo, please change/add the following variables in .env file:

DB_DATABASE = {YOUR_DATABASE_NAME}
DB_USERNAME = {YOUR_DATABASE_USER}
DB_PASSWORD = {YOUR_DATABASE_PASSWORD}
REST_API_URL = "https://gorest.co.in/public/v2/"
REST_API_TOKEN = {GOREST_API_TOKEN}

Run the following commands in the terminal to install the dependencies and modules:

composer install
npm install && npm run dev

Run the following command to add database tables:

php artisan migrate

Run the following command to prepopulate database table values:

php artisan db:seed

Run the following command to start the application:

php artisan serve

Open http:127.0.0.1:8000 in browser to run the application.

During seeding, a demo admin account has been created with following details:

user: [email protected]
pass: packt2003

About

This is repository for packt coding test application

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published