定制 etiennemarais/legit 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

etiennemarais/legit

Composer 安装命令:

composer create-project etiennemarais/legit

包简介

Legit is a simple service for easy Atlas user verification via a unique user identifier.

README 文档

README

http://docs.legit.apiary.io/

Installation

If you don't have homestead installed yet, please follow the instructions laid out in the Laravel documentation and pull the vagrant box down for development, https://laravel.com/docs/master/homestead

Homestead config

---
ip: "192.168.10.10"
memory: 4096
cpus: 4
provider: virtualbox

authorize: ~/.ssh/id_rsa.pub

keys:
    - ~/.ssh/id_rsa

folders:
    - map: ~/Documents/workspace/Projects
      to: /home/vagrant/Code
      type: "nfs"

sites:
    - map: legit.app
      to: /home/vagrant/Code/Legit/public  

databases:
    - homestead
    - drivelog
    - cruxcoaches
    - legit

variables:
    - key: 'APP_ENV'
      value: 'local'
    - key: 'APP_DEBUG'
      value: 'true'
 

Install

Run the commands on your local. Clone the repo into your mapped folder for vagrant(see above homestead)

git clone https://github.com/olx-ssafrica/legit.git
composer install

Write local environment into the project root. See .env.example

cat > .env <<EOF
>APP_ENV=local
>APP_DEBUG=true
>APP_KEY=SomeRandomKey!!!
>DB_CONNECTION=mysql
>DB_HOST=192.168.10.10
>DB_PORT=3306
>DB_DATABASE=legit
>DB_USERNAME=homestead
>DB_PASSWORD=secret
>CACHE_DRIVER=memcached
>QUEUE_DRIVER=sync
>SMS_GATEWAY_DRIVER=
>SMS_GATEWAY_API_ID=
>SMS_GATEWAY_USER=
>SMS_GATEWAY_PASS=
>OTP_LENTGH=6
>OTP_ONLYNUMBERS=true
>CACHE_DRIVER=memcached
>QUEUE_DRIVER=database
>QUEUE_RETRY_TIMEOUT=3
>SLACK_WEBHOOK_URL=
>EOF
php artisan migrate
php artisan db:seed

Authorization

All api requests need an auth header to run otherwise you will get a 401 error. If you want to change the default country you can do so in your seed files where it sets up a basic country.

Authorization: Token apikeysouthafrica

Actual API keys for regions

Setup actual API keys by running this command

php artisan key:generate --show

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: Unknown
  • 更新时间: 2016-05-11

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固