Giter Site home page Giter Site logo

albert2lyu / 01-wechatplatform Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 5.35 MB

一个微信公众平台的简化版,拥有录入、搜索、查看文章、展示数据的功能。

License: Apache License 2.0

ApacheConf 0.01% PHP 1.29% JavaScript 40.38% HTML 3.26% CSS 55.05%

01-wechatplatform's Introduction

使用文档

项目目录结构

  • src 是后端程序目录,web 是前端目录。
  • web/src 是源文件目录,里面有 cssimgjsscss 四个文件夹,其中 scss 用于存放开发阶段编译前的样式文件,css 用于存放开发阶段编译后的样式文件。
  • web/dist 是构建目录,用于项目完成后的打包和交付。有 cssjsimg-compressed 三个文件夹,其中 img-compressed 是图片压缩后的存放目录。
  • config.php 是项目程序配置文件
  • database.php 是项目数据库配置文件
  • index.php 是项目程序主入口文件

前端使用说明

  1. 安装 Node 4.3.*
  2. 安装 cnpmnpm install -g cnpm --registry=https://registry.npm.taobao.org
  3. 在项目 web 目录运行:cnpm install,等待结束
  4. 开发阶段运行项目:
  • 在项目 web 目录运行:gulp dev,监听文件变化,自动刷新浏览器
  1. 项目完成后打包:
  • 在项目 web 目录运行:gulp build(一般不用管)

后端使用说明

  1. 下载安装 composer 包管理软件(注意:若安装过程出现未安装 OpenSSL 扩展错误,请在 phpstudy 中安装 OpenSSL 插件)
  2. 打开翻墙软件全局翻墙
  3. 在当前文件夹运行命令行工具,执行命令composer install

01-wechatplatform's People

Contributors

loyalsoldier avatar

Stargazers

 avatar

Watchers

 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.