Code Monkey home page Code Monkey logo

multiplewebdemo's Introduction

本站已开源

开源地址:

特性

Express作为服务器后台,使用ejs作为引擎模板,采用MVC开发模式。前端高度模块化,便于维护。

使用ES6,编码更轻松。

使用browser-sync实现跨终端浏览器同步测试工具,提高开发效率。

使用webpack打包文件,解决繁杂的项目依赖、文件处理等问题。通过webpack开发中间件,实现开发阶段快速打包文件到内存,避免长时间等待。

webpack样式文件独立打包。

使用bootstrap作为前端UI框架,并且通过webpack实现按需加载模块,节省网站流量。同时提供自定义修改,极大方便更改整站样式。

使用sass编写css,用最高效的方式,以少量的代码创建复杂的设计。

更多特性查看项目。

使用

1.安装nodejs

2.克隆项目

3.安装

npm i

项目目录

--root
	|--config				//配置文件
	|--middlewares			//中间件
	|--pubulic				//静态资源
	 |--js
	 |--css/sass
	 |--images
	|--router				//路由控制器
	|--tools				//工具
	 |--lib
	 |--webpack.config.js
	|--views				//视图文件
	 |--components
	|--package.json
	|--...

4.开发模式

npm run dev

启动服务成功之后进入localhost:3001 开发网址

5.构建

npm run build

将在根目录下创建build文件夹。build文件夹直接可以放到服务器上开启服务。

6.启动

进入bulid目录: npm start

multiplewebdemo's People

Contributors

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