Giter Site home page Giter Site logo

xcorp1986 / viease Goto Github PK

View Code? Open in Web Editor NEW

This project forked from mruse/viease

0.0 1.0 0.0 57.01 MB

微易,一款微信公众平台管理系统。

Home Page: http://viease.cn/

PHP 9.28% Nginx 0.03% Shell 0.19% ApacheConf 0.01% Ruby 0.01% JavaScript 76.90% HTML 8.12% CSS 5.44% Makefile 0.03%

viease's Introduction

微易,一款基于 Laravel 开发的,使用 overtrue/wechat SDK 做为微信接入的微信公众平台管理系统框架。http://viease.cn/

此项目为我们多个人业务未完全做完的一个产品,只是开源出来大家去贡献,一起完善它。 那么,请不要在群里 @ 我提一些细节问题,我没有时间来帮忙你解决。你要是解决不了,就不要用了,你要是解决了,欢迎贡献 PR。 你在玩这个东西之前有必要阅读完这一整篇 README,否则加群问问题也没有人理你。 最后,谢谢配合!:pray:

安装

  1. Git clone 并安装
git clone https://github.com/vieasehub/viease
cd viease
composer install -v
chmod -R 777 storage
chmod -R 777 bootstrap/cache
  1. 创建 .env 文件
$ curl https://raw.githubusercontent.com/laravel/laravel/master/.env.example -o .env
// 生成key
$ php artisan key:generate

以及修改 .env 内对应的项目

  1. 配置 nginx 虚拟主机
server {
    listen 80;
    server_name viease.app; # 有必要改成你的域名
    root "/path/to/viease"; # 这里改成你的viease所在目录的public

    index index.html index.htm index.php;

    charset utf-8;

    location / {
        try_files $uri $uri/ /index.php?$query_string;
    }

    location = /favicon.ico { access_log off; log_not_found off; }
    location = /robots.txt  { access_log off; log_not_found off; }

    access_log /usr/local/var/log/nginx/viease.app-access.log;
    error_log  /usr/local/var/log/nginx/viease.app-error.log error;

    sendfile off;

    client_max_body_size 100m;

    location ~ \.php$ {
        fastcgi_split_path_info ^(.+\.php)(/.+)$;
        fastcgi_pass 127.0.0.1:9000;
        fastcgi_index index.php;
        include fastcgi_params;
        fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
        fastcgi_intercept_errors off;
        fastcgi_buffer_size 16k;
        fastcgi_buffers 4 16k;
    }

    location ~ /\.ht {
        deny all;
    }
}
  1. 创建数据库

确保你的 .env 里的数据库配置已经 OK.

$ php artisan migrate
$ php artisan db:seed
  1. 访问后台: yourdomain.com/admin
email: admin
password: viease
  1. 添加公众号
  2. 同步粉丝
$ php artisan sync:all_fans # 获取全部公众号,同步粉丝
$ php artisan sync:all_groups # 获取全部公众号,同步粉丝组

这一步估计耗时很长...

完事。

开发步骤

  1. gulp安装:

    首先安装npm,然后执行:

    $ npm install gulp
  2. ruby,sass安装:

    http://www.w3cplus.com/sassguide/install.html

  3. 修改scss文件,执行gulp

    $ cd /your-project-directory/public
    $ gulp

友情提示

  1. 如果你使用 Homestead,环境可能缺少 mcrypt 拓展,那么使用以下命令来更新系统:

    $ sudo apt-get update && sudo apt-get install mcrypt php7.0-mcrypt && sudo apt-get upgrade

Docker

  1. 运行下面命令启动容器(镜像下载过程可能会很漫长,请尝试国内Docker服务商提供的加速服务)

    $ sudo docker run -d -p 8080:80 -p 2222:22 lee2011/viease
  2. ssh 到你的容器中 (密码:secret)

    $ ssh -p 2222 homestead@localhost
  3. 修改 /var/www/html/.env 文件,配置数据库(容器中不包含数据库,请根据需要自己安装或者连接其他主机上的数据库服务器),然后运行 artisan 命令创建数据库

    $ php artisan migrate
    $ php artisan db:seed
  4. 访问后台: your-server-ip:8080/admin

说明

  1. 公众号没认证玩不了。
  2. 你完全有必要会用 Laravel,否则提一些关于基本框架使用的问题很有可能没有人回答。
  3. 不要太过自信,上面的步骤你完全有必要照着做,除非你完全能掌控它。
  4. 本项目后台部分功能未完成,只有后台,前台就一个首页,所以不会有 OAuth 之类的演示功能,我们期望有时间的朋友可以补充完善它,谢谢!QQ群:319502940

License

MIT

viease's People

Contributors

taylorotwell avatar overtrue avatar daylerees avatar franzliedke avatar jasonlewis avatar sparksp avatar cviebrock avatar tobsn avatar crynobone avatar bencorlett avatar grahamcampbell avatar jeffreyway avatar ericlbarnes avatar neoascetic avatar jesseobrien avatar codler avatar jakobud avatar mikelbring avatar r8sn8t avatar kapv89 avatar kbanman avatar vespakoen avatar mathewhany avatar pedroborges avatar lancepioch avatar hirokws avatar barryvdh avatar tommyc81 avatar bpierre avatar loic-sharma avatar

Watchers

kwan avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.