Skip to content
No description, website, or topics provided.
PHP HTML Vue
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
app
bootstrap
config
database
public
resources
routes
storage
tests
.DS_Store
.env.example
.gitattributes
.gitignore
Coupon Generation.postman_collection.json
LICENSE
artisan
composer.json
composer.lock
package.json
phpunit.xml
readme.md
server.php
webpack.mix.js

readme.md

Coupon Generation API with georadius application

Installation

If you use git clone git@github.com:Kendysond/coupon-test-with-georadius-application.git

  • composer install
  • chmod -R 777 storage bootstrap/cache
  • cp .env.example .env
  • php artisan key:generate

Ensure you configure your DB, then

  • php artisan migrate

The idea

Company A wants to give out promo codes worth x amount during events so people can get free rides to and from the event. The flaw with that is people can use the promo codes without going for the event.

  • Generation of new promo codes for events
  • The promo code is worth a specific amount of ride
  • The promo code can expire
  • Can be deactivated
  • Return active promo codes
  • Return all promo codes
  • Only valid when user’s pickup or destination is within x radius of the event venue
  • The promo code radius should be configurable
  • To test the validity of the promo code, expose an endpoint that accept origin, destination, the promo code. The api should return the promo code details and a polyline using the destination and origin if promo code is valid and an error otherwise.
You can’t perform that action at this time.