Giter Site home page Giter Site logo

anaton's Introduction

目录结构

.
├── public          // LeanEngine Web 前端发布目录,前端(HTML\CSS\JavaScript)构建后放在此目录中
├── server-modules  // 服务器端代码模块目录
│    ├── app.js            // LeanEngine 服务端代码主入口
│    ├── api-router.js     // API 接口路由配置
│    ├── tool.js           // 工具方法
│    └── hello.js          // 示例代码
├── web-project     // Web 前端项目目录
│    ├── gulp           // 自动化构建的逻辑模块
│    ├── dist           // 构建之后的源码目录
│    └── src            // 源码目录
└── server.js       // LeanEngine 的环境配置

依赖安装

  • 首先 clone 这个代码库到本地目录中

  • 再在该项目根目录执行

$ npm install

安装服务端环境依赖

  • web-project 目录中执行
$ npm install

安装 Web 端构建依赖

  • web-project 目录中执行
$ bower install

安装 Web 端基础库

调试

  • 在根目录执行
$ avoscloud

运行服务器端环境,通过 http://localhost:3000/api/hello 可以测试

  • 在 web-project 目录中执行
$ gulp serve

运行 web 端环境,通过 http://localhost:9000 可以调试

  • 开发时需要同时运行这两个任务(开两个 terminal),就可以同时调试 Server 与 Web

anaton's People

Contributors

panjiachen avatar l-x-c avatar

Watchers

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