Goers Trial Day - Backend Engineer

Build Status License

This repository is a pretest backend engineer Goers. This project contains a web service with a RESTful API type developed using the Lumen Microframework.

   ...    *    .   _  .
*  .  *     .   * (_)   *
  .      |*  ..   *   ..
   .  * \|  *  ___  . . *
*   \/   |/ \/{o,o}     .
  _\_\   |  / /)  )* _/_ *
      \ \| /,--"-"---  ..
_-----`  |(,__,__/__/_ .
       \ ||      ..
        ||| .            *
        |||
goers   |||
  , -=-~' .-^- _

Pretest Task

Requirements

Getting started

Clone the repo:

git clone --depth 1 https://github.com/denikn/goers-trial-day
cd goers-trial-day
rm -rf .git

Set environment variables:

cp .env.example .env

Install dependencies:

composer install

Database migration and seed:

php artisan migrate
php artisan db:seed

Generate JWT secret:

php artisan jwt:secret

Running locally:

php -S localhost:8000 -t public

Documentation

This documentation uses postman.

Goers Trial Day REST API Documentation

Assumptions

1. Assuming the image and avatar already exist
2. Users make payments using credit or debit cards
3. Credit or debit cards used are Visa and Master Card
4. Gender must choose between men and women
5. There is no voucher or discount, so the discount value is 0
6. The user has received the information via email

License and Copyright

The Lumen framework is open-sourced software licensed under the MIT license.