承接 bildvitta/sp-vendas 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

bildvitta/sp-vendas

最新稳定版本:v0.1.6

Composer 安装命令:

composer require bildvitta/sp-vendas

包简介

README 文档

README

Latest Version on Packagist Total Downloads

Introduction

The SP (Space Probe) package is responsible for collecting remote data updates for the module, keeping the data structure similar as possible, through the message broker.

Installation

You can install the package via composer:

composer require bildvitta/sp-vendas

For everything to work perfectly in addition to having the settings file published in your application, run the command below:

php artisan sp-vendas:install

Configuration

This is the contents of the published config file:

return [
    'table_prefix' => env('MS_SP_VENDAS_TABLE_PREFIX', 'vendas_'),
    'db' => [
        'host' => env('VENDAS_DB_HOST', '127.0.0.1'),
        'port' => env('VENDAS_DB_PORT', '3306'),
        'database' => env('VENDAS_DB_DATABASE', 'forge'),
        'username' => env('VENDAS_DB_USERNAME', 'forge'),
        'password' => env('VENDAS_DB_PASSWORD', ''),
    ],
    'rabbitmq' => [
        'host' => env('RABBITMQ_HOST'),
        'port' => env('RABBITMQ_PORT', '5672'),
        'user' => env('RABBITMQ_USER'),
        'password' => env('RABBITMQ_PASSWORD'),
        'virtualhost' => env('RABBITMQ_VIRTUALHOST', '/'),
        'exchange' => [],
        'queue' => []
    ],
];

Importing data

You can import initial data from the parent module by setting the database connection data in the configuration file. However, it will be necessary to import the data from the dependent modules first: sp-hub, sp-crm and sp-produto.

php artisan dataimport:vendas_sales

Database seeder

You can seed your database with fake data to work with. However, it will be necessary to seed the other dependencies first: sp-hub, sp-crm and sp-produto.

php artisan db:seed --class=SpVendasSeeder

Running the worker

After setting the message broker access data in the configuration file, you can run the worker to keep the data up to date.

php artisan rabbitmqworker:sales

统计信息

  • 总下载量: 3.31k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 12
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: Unknown
  • 更新时间: 2022-08-23