Giter VIP home page Giter VIP logo

moa-h5's Introduction

Moa-H5

技术栈

  • express
  • jade
  • weui
  • iscroll
  • fastclick
  • zepto
  • gulp
  • nginx

前后端分离实践

  • 前端:moa-frontendmoa-h5
    • public下面的采用nginx做反向代理
    • 其他的采用express+jade精简代码(ajax与后端交互)
  • 后端:moa-api

Install

npm install 
npm start

访问 http://127.0.0.1:3020/

Features

  • 经典的 jQuery + bootstrap 简单易用
  • 响应式,兼容移动端和pc端
  • expressjs + jade 代码极简,功能强大
  • 自动挂载路由,在routes目录创建js文件会被自动识别,无需在app.js里配置
  • 代码变动,自动重启服务器
  • 支持log4js日志
  • 使用gulp构建

Configuration

nginx

  • 复制config/nginx.example.conf为config/nginx.conf
  • 修改config/nginx.conf相关端口配置
  • 执行gulp nginx

说明

  • 实际端口8001
  • h5端口3020
  • api端口3005

Tasks

  • npm start 启动服务器
  • gulp routes 打印路由
  • gulp kp 停止服务器
  • gulp nginx 启动nginx服务器
  • gulp 跑测试,依赖gulp watchgulp mocha

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request

版本历史

  • v0.1.0 初始化版本

欢迎fork和反馈

如有建议或意见,请在issue提问或邮件

License

this repo is released under the MIT License.

moa-h5's People

Contributors

i5ting avatar

Watchers

 avatar  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.