GithubHelp home page GithubHelp logo

yiqunkeke / todolist Goto Github PK

View Code? Open in Web Editor NEW
1.0 2.0 0.0 18.58 MB

Vue+Vue-Router+Vuex+SSR实战精讲

HTML 0.56% JavaScript 79.90% Vue 18.94% CSS 0.60%
webpack4 vue vue-router vuex vue-ssr koa koa-router ejs es6

todolist's Introduction

webpack

项目介绍

使用 webpack + vue + vue-router + vuex + vue-ssr 实现 todo 应用

软件架构

build目录

		webpack.config.base.js  // 基础webpack配置

		webpack.config.client.js  // 客户端

		webpack.config.server.js  // 服务端

client目录

		index.js // 客户端入口文件

		server-entry.js // 服务端入口文件

		create-app.js // 服务端渲染每次都需要重新创建新的app

server 目录

		routers

				server-render.js // 将vue实例渲染为html
	
				dev-ssr.js // 处理开发时---服务端渲染情况
	
				ssr.js  // 处理正式环境
	
		server.js // 服务端文件

		server.template.ejs // 模板

安装教程

  1. npm install
  2. npm run dev:client // 启动客户端
  3. npm run dev:server // 启动服务端

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.