• Stars
    star
    471
  • Rank 92,704 (Top 2 %)
  • Language
    JavaScript
  • License
    MIT License
  • Created over 7 years ago
  • Updated almost 2 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

🍎 Efficient development of web SPA using Vue.js(2.*) + Webpack + Element-ui + Pwa + Vuex + Vuex-router + Vue-i18n + Dayjs + Lodash.

Vue Boilerplate Template

  twitter
🍒(vue webpack vuex vue-router vue-i18n element-ui) out of the box
🍎 Nice Boilerplate Template for creating medium plus Vue.js(2.*) project


Goal and Philosophy

For how to build medium-sized (+) VUE projects, provide some reference based on past experience. The latest Vue Boilerplate based on vue-cli3 has been open source: awesome-vue-cli3-example, If you pay attention to it, I believe it is very worthwhile 🎉.

Prerequisites

Node.js (>=4.x, 8.x preferred), Npm version 4+(Yarn preferred), and Git.

Demo

Online Demo Page

Advantage

Usage

git clone https://github.com/nicejade/vue-boilerplate-template (your-project-name)
cd your-project-name
npm install (npm i / yarn)
npm start / npm run dev / yarn run dev

Go to http://localhost:8080/. If port 8080 is already in use on your machine, the program will specify the available port (incremental) for you, for example, 8081 / 8082 .... Of course, you can temporarily replace the port using the following command:

PORT=8888 npm run dev

Additional supplement: You need to make sure that PORT is a command that can be executed on your machine .

More Command
npm run build

Equivalent execution node build.js, initiate a build project .

npm run build:dll

Equivalent execution webpack --config build/webpack.dll.conf.js, For more information see webpack.DllPlugin.

npm run jarvis / yarn run jarvis

run webpack-jarvis(A very intelligent browser based Webpack dashboard),In your browser open: localhost:1337 , you have it.

JARVIS for Webpack

npm run pretest

Using nodejs to build the local server: http://localhost:3000/ , do a simple pre test for the code after the package.

npm run analyz

Webpack plugin and CLI utility that represents bundle content as convenient interactive zoomable treemap. It will automatically open this address:http://localhost:8888/ .

webpack-bundle-analyzer

Dependent plugin list

  • vue2
  • vue-router
  • vuex
  • vue-i18n
  • axios
  • bootstrap
  • element-ui
  • lodash
  • moment dayjs
  • js-cookie
  • ... ...

Operation request

Your backend can return the following format data, it's better .

{
  success: true,
  message: 'err message content',
  value: [
    // Useful data
  ]
}

At the front end, you can handle the request like this:

let params = {
  // Interface required parameters
}
this.isLoading = true
this.$apis.moduleName.getProfile(params).then(result => {
  // Handle the correct data you received
}).catch(error => {
  this.$message.error(`Error: ${error}`)
}).fin(() => {
  this.isLoading = false
})

So considerate, Template has been helped to handle the request uniformly, so you can be so easy to use, of course, you can change your own as needed in the helper/ajax.js file .

Links

Writing

See the example in the boilerplate template. Or An example that has been applied, Online address: https://nicelinks.site.

License

MIT

Copyright (c) 2017-present, nicejade.

More Repositories

1

markdown-online-editor

📝基于 Vue、Vditor,所构建的在线 Markdown 编辑器,支持流程图、甘特图、时序图、任务列表、HTML 自动转换为 Markdown 等功能;🎉新增「所见即所得」编辑模式。
CSS
2,402
star
2

nice-front-end-tutorial

🌍 Constantly updated front-end resources, tutorials, opinions(与时俱进版前端资源,教程和意见。)
914
star
3

awesome-vue-cli3-example

🦅 Awesome example for rapid Vue.js development using vue-cli3 .
Vue
168
star
4

nicelinks-vue-client

🐬 很棒的 Web 应用——倾城之链(NICE LINKS),基于 Vue2.*(vuex、Webpack4、ES6、Element-UI)所构建。
Vue
140
star
5

toss-puppeteer

🦀Try all kinds of toss about using GoogleChrome puppeteer(尝试各种折腾使用GoogleChrome puppeteer(木偶))
JavaScript
128
star
6

nicelinks-weekly

基于 Deno、TypeScript 编写,一键生成「倾城之链(旨在云集全球优质网站)」周刊文章,每周五发布。https://blog.nicelinks.site/
TypeScript
94
star
7

quickapp-boilerplate-template

🔨致力于构建更为优雅的「快应用」开发脚手架模板。https://quickapp.lovejade.cn/tag/quickapp/
JavaScript
74
star
8

vuepress-web-app

📝 采用 VuePress 构建的 Web 应用程序,支持 Pwa、Github Issues 评论、Prettier Markdown 等。
Shell
68
star
9

awesome-quickapp

🛠 A curated list of awesome quickapp tutorials, articles, projects and resources.
47
star
10

docker-vue-node-nginx-mongodb-redis

🐉 An awesome boilerplate, Integrated Docker, Vue, Node, Nginx, Mongodb and Redis in one, Designed to develop & build your web applications more efficient and elegant.
JavaScript
45
star
11

arya-jarvis

🛠 Designed to save developers more time and energy. https://www.jeffjade.com/
JavaScript
41
star
12

sublime_packages

✍️ SublimeText Pageages Backups For Front-End Developer
Python
37
star
13

nicelinks-quick-app

🌪Awesome NICE LINKS(倾城之链) client built with quickapp(快应用).
JavaScript
28
star
14

arya-jarvis-doc

Arya Jarvis:旨在为开发人员节省更多时间和精力(Document)
23
star
15

chatgpt.nicelinks.site

素问智聊斋,非官方 ChatGPT 在线客户端,旨在提供更便捷的 ChatGPT 访问体验;它基于非官方 ChatGPT API、Svelte、TailwindCSS、Vite 和 NodeJS 所搭建;无需账号,零配置,即可与 ChatGPT 畅聊;支持自定义 OPENAI API KEY。
Svelte
20
star
16

puppeteer-robot

🤖基于 Puppeteer 所构建的简易机器人,以帮助自动化完成些精确性事务。
JavaScript
15
star
17

vue-common-components

Simple and common Vue1.* components,It has been stopped maintenance long ago(!已停止维护).
Vue
15
star
18

markdown2png

简单好用的在线文本工具;支持将 Markdown、rich text、word 等格式内容,快速转化为 png、pdf、html 等文件,并支持一键下载、自定义设置等功能。
Vue
14
star
19

www.lovejade.cn

🌊幽居空谷轩:集中展示个人些许博客、作品及文章 https://www.jeffjade.com | https://quickapp.lovejade.cn | https://nice.lovejade.cn
Shell
12
star
20

sentences-monthly-newsletter

人生最曼妙的风景,是内心的淡定与从容。曼妙句子,旨在云集世间摇曳生姿的文字,或情感、或唯美、或修身、或励志、或哲学、或娱乐,拳拳真情,精心择选,总有荡漾你心的那一言。https://read.lovejade.cn/
TypeScript
11
star
21

about-me

主页:倾城之链作者,晚晴幽草轩轩主,天意人间舫舫主,静晴轩别苑博主,静轩之别苑博主。
CSS
10
star
22

read.lovejade.cn

箴言锦语,云集世间曼妙句子;或情感、或唯美、或修身、或励志、或哲学、或娱乐,拳拳真情,精心择选,总有荡漾你心的那一言。 https://read.lovejade.cn
JavaScript
10
star
23

nice-jade-collecting

Nice Jade Collecting(Excellent Article / Scripts / Tools / Web-site)
JavaScript
9
star
24

play-with-python

学习 Python & 实战练习,以便能更好的玩 Python 相关技能、工具。
Python
9
star
25

prettier-plugin-quickapp

Prettier Quickapp Plugin .
JavaScript
9
star
26

nicelinks-miniprogram

基于 mpvue 所构建的小程序版本「倾城之链」,https://nicelinks.site
Vue
7
star
27

docz-web-app

📝 Web applications built with Docz ( 采用 Docz 构建的 Web 应用程序 ).
JavaScript
6
star
28

responsive-email-template

Make better response mail templates
JavaScript
5
star
29

nicejade

My GitHub Profile README. https://www.jeffjade.com/
5
star
30

jadeblog-backups

The use of Gitalk, record the visitor comments on the blog(晚晴幽草轩) content.
5
star
31

resume

🇨🇳 personal resume
4
star
32

prerender-spa-server

For serving your prerendered HTML to crawlers for SEO, through Prerender & Redis & Nginx.
JavaScript
4
star
33

simple-resume-tpl

Create an simple resume template used to practice the Foundation framework
JavaScript
4
star
34

experience-precipitate

🏹 On the knowledge, tools, thinking and so on experience precipitation.
3
star
35

blog.nicelinks.site

基于 GatsbyJS 所搭建的网站,用来承载「倾城之链」周刊,https://blog.nicelinks.site 。
JavaScript
3
star
36

screenshot-and-upload-to-ali-oss

Take a screenshot of the site's homepage, compress it, and upload it to ali oss.
JavaScript
2
star
37

micro-web-component

🌌 Micro web component used to show miniprogram code. https://nicelinks.site/
JavaScript
2
star
38

quickapp-deeplink

JavaScript
2
star
39

fine.niceshare.site

吾生有涯,而知无涯;缘知而往,随心以行;上下求索,探寻自然;沉淀于此,云证前言。
MDX
2
star
40

ad-block-remind

A pop-up box reminding users who install the Ad Block Plus plugin to request a whitelist. Built on Web component. https://nicelinks.site/
JavaScript
2
star
41

play-with-docker

🐳Recording learn & use Docker to do some interesting things.
JavaScript
1
star
42

graceful-sentences-miniprogram

基于 mpvue 所构建的「曼妙句子」小程序版本 。https://read.lovejade.cn/
JavaScript
1
star
43

reward-service

通过 WebComponent 所构建的打赏服务,使之可以轻松植入自己的各个 Web 网站。
JavaScript
1
star
44

homepage

Based on Astro, Starlight, Svelte, Markdown, MDX, TailwindCSS, TypeScript built personal homepage, Fast, accessible, and easy-to-use, Highly customizable . | 基于 Astro, Starlight, Svelte, Markdown, MDX,TailwindCSS, TypeScript 所构建的个人主页,快速、易用、易于访问、高度可定制。https://niceshare.site/
TypeScript
1
star