Skip to content

saber13812002/survey-service

Repository files navigation

Build Status Total Downloads Latest Stable Version License

Survey Service

Survey-service is a service to manage surveys in Kermany.com architecture

  • this service has api to commiuncate with other microserice
  • every app can get token and interact with this service

Installation

  • clone this repo

  • JENKINS section (in this file)

  • composer install

  • create .env file by clone .env.example

  • create db and update .env

  • run php artisan migrate

  • run php artisan key:generate

  • we should have PackageType with run:

php artisan db:seed --class=Database\Seeders\Migrations\PackageTypeSeeder

php artisan db:seed --class=AnswerTypeSeeder

  • run php artisan serve

  • open {APP_URL}/health

  • open {APP_URL}/api/docs

for test in locahost ENV

  • run these commands:

php artisan migrate:refresh --seed

php artisan test

php artisan db:seed --class=Database\Seeders\Migrations\PackageTypeSeeder

php artisan db:seed --class=AnswerTypeSeeder

How to test

- open /api/docs 
- import postman link then import it
- run and test apis

Description

  • Campaign for marketing activities: مثال

    • کمپین تبلیغاتی بهار
    • کمپین تبلیغاتی سال 1400
  • Category for report goals e.g:

    • روانشناسی
    • یا سوالات رضایت مشتری
    • یا سوالات هوش
    • یا سوالات دغدغه های اجتماعی

JENKINS CI/CD

  • add jenkins file into root

  • install health package:

    composer require ukfast/laravel-health-check
    
  • modify l5-swagger config file by read Readme.md file >> section [l5-sqagger]

l5-swagger

راهنمای استقرار مستندات

openApi

سرویس‌ها در تمام محیط ها.

بعد از نصب پکیج darkaonline/l5-swagger کانفیگ زیر در فایل کانفیگ این پکیج اعمال کنید.

config/l5-swagger.php like this:

'documentations' => [
...
'routes' => [
    'api' => 'api/docs',
    'docs' => 'swagger/docs',
]
...

License

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

About

exam service polling survey quis laravel

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published