Giter Club home page Giter Club logo

webstart's Introduction

WEBSTART

前端项目基础模板

有关使用说明,请查看 WIKI

使用步骤

  1. 下载代码,包含基础的文档结构

    $> git clone https://github.com/dYb/webstart.git

  2. 安装FED:

    $> npm install -g fed

  3. 启动:

    $> cd webstart
    $> fed server -w ./fedConfig.json

  4. 访问:

    http://localhost:3000

  5. 部署 (开发时无需部署,提交svn时执行一次)

    grunt dist

目录结构说明

一份完整的目录看起来是这样子的

webstart
	- java 后端的java代码
	- frontend
		* build       部署时的中转地,不用管啦
		* src         前端的开发都在这里
			+ htmls   静态html页面
			+ image   网站图片
			+ lib     前端库,本模板包含了jquery、seajs
			+ script  前端js文件
			+ style   样式库
			+ WEB-INF 存放ftl模板
		* test 测试
	- mock             存放模拟的后台数据 
	- webapp           上线是代码在此文件夹中,目录结构跟frontend/src完全相同
	- fedConfig.json   fed配置文件
	- gruntfile.coffee grunt配置文件
	- package.json

注: 在前后端实际套接时,可将gruntfile.coffee 里的uglify任务注掉。

webstart's People

Contributors

ijse avatar dyb avatar

Watchers

James Cloos 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.