mohamednaser / ynmodata-assessment

ynmodata-assessment

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Ynmodata Assessment Task

An Assessment Task for Ynmodata Company .

Author

This project was executed by the duo of :

Used Tools

  • Laravel
  • Passport Package
  • MarkDown Syntax

Done Work

  • Implement bearer authentication to CRUD APIs.
  • Create DB seeds.
  • Implement RESTful CRUD API to manage films.

Requirements

The Below Componants Is Required Before Setup:

  • PHP >= 7.2.5
  • BCMath PHP Extension
  • Ctype PHP Extension
  • Fileinfo PHP extension
  • JSON PHP Extension
  • Mbstring PHP Extension
  • PDO PHP Extension
  • Tokenizer PHP Extension
  • XML PHP Extension

Setup

1- Open your git bash and cd to the location you'd like to put your files the run the command below.

git clone git@github.com:mohamednaser/ynmodata-assessment-task.git

2- Install Composer Dependancies

composer install

3- Change .env file contents for DB_DATABASE, DB_USERNAME, DB_PASSWORD variables

4- Run Database Migrations files

php artisan migrate

5- Run Live Server

php artisan serve

Important Note

PostMan Should Set Accept header with application/json example

PostMan Collection

You Will Find link for PostMan Collection Here

Live Version

Live version [TBA].

ScreenShots

Register

example

unauthorized response in wrong token

example

Add New Movie

example

List Movies

example

Get Movie Details

example

Delete Movie

example

About

ynmodata-assessment


Languages

Language:PHP 96.8%Language:HTML 3.2%