This project was created based on Buckhill's Pet Shop API requirements.
The Pet Shop API offers the required HTTP request methods and endpoints to meet the demands of a FE team creating a suitable UI. This web application features the following features based on the User Story:
- Admin endpoint(CRUD).
- Products endpoint(CRUD).
-
CD into the application root directory with your command prompt/terminal/git bash.
-
Run
cp .env.example .env
. -
Inside
.env
file, setup database, mail and other configurations. -
Run
composer install
. -
Run
php artisan key:generate
command. -
Run
php artisan migrate:fresh --seed
command. -
Run
php artisan jwt:secret
to generate a secret key to handle the token encryption. -
Run
php artisan serve
command. -
Launch the API documentation UI via
/api/documentation
.
Administrator Account
- Email:
admin@buckhill.co.uk
- Password:
admin
User Account
You can get a new or existing user email from the admin/user-listing
endpoint.
- Password:
userpassword
Run tests with php artisan test
.
PASS Tests\Feature\AdminLoginTest
✓ admin email login field is required
✓ admin password login field is required
✓ admin can login
Tests: 3 passed
Time: 0.31s