Service to generate coupon codes
This repository has been archived on 2026-03-21. You can view files and clone it, but you cannot make any changes to its state, such as pushing and creating new issues, pull requests or comments.
Find a file
2021-09-05 20:36:39 +02:00
app Swagger correction 2021-09-05 20:36:39 +02:00
bootstrap first commit 2021-09-05 17:20:59 +02:00
config Swagger correction 2021-09-05 20:36:39 +02:00
database first commit 2021-09-05 17:20:59 +02:00
public first commit 2021-09-05 17:20:59 +02:00
resources/views first commit 2021-09-05 17:20:59 +02:00
routes first commit 2021-09-05 17:20:59 +02:00
storage Swagger correction 2021-09-05 20:36:39 +02:00
tests first commit 2021-09-05 17:20:59 +02:00
.editorconfig first commit 2021-09-05 17:20:59 +02:00
.env.example first commit 2021-09-05 17:20:59 +02:00
.gitignore first commit 2021-09-05 17:20:59 +02:00
.styleci.yml first commit 2021-09-05 17:20:59 +02:00
artisan first commit 2021-09-05 17:20:59 +02:00
composer.json first commit 2021-09-05 17:20:59 +02:00
composer.lock first commit 2021-09-05 17:20:59 +02:00
phpunit.xml first commit 2021-09-05 17:20:59 +02:00
README.md Update README.md 2021-09-05 17:25:22 +02:00

Installation

Requirements:

  • PHP >= 7.3
  • MySQL
  • Composer

Installation (Mac):

Create a db and a user with write privileges:

  • mysql -uroot
  • create database coupon;
  • create user coupon_user identified with mysql_native_password by password;
  • grant all privileges on coupon.* to coupon_user;
  • quit;

Prepare project (run in project root folder):

  • [add the variables to .env]
  • composer install
  • php artisan migrate:fresh

Launch project (run in project root folder, different terminals):

  • php -S localhost:8000 public/index.php
  • php artisan queue:work —daemon

Swagger:

  • It is located at /api/documentation