Giter Site home page Giter Site logo

vue-cli-template's Introduction

vue-cli-template

A simple Vue.js CLI template for client-side and server-side rendering.

Related

Packages

Examples

Usage

This is a project template for vue-cli.

Note: Node v7+ required.

$ npm install -g vue-cli
$ vue init xpepermint/vue-cli-template my-project
$ cd my-project
$ npm install
$ npm run start

What's Included

  • npm run build: Builds the application for production.

  • npm run start: Starts a production http server or a development server with support for client-side rendering, server-side rendering, source maps and hot-reload.

Tutorials

This template represents a minimal Vue.js application setup. Check the Vue.js Cheatsheet Book for further instructions.

License (MIT)

Copyright (c) 2016 Kristijan Sedlak <[email protected]>

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.

vue-cli-template's People

Contributors

bernardocs avatar mydnicq avatar xpepermint avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

vue-cli-template's Issues

Use vue-router & vue-meta

Hi, I am new to Vue.js and am struggling to connect vue-router and vue-meta to this template. Can anyone please point me in the right direction?

The problem I am having is only SSR related: "I get a window is not defined" error.

Thanks!

Webpack bundling missing

Hey guys...

I'm hyped to use this project as a template to make a service that renders .vue files as String.

I followed the instructions (easy... vue init and then npm install and then npm run start) but I got:

[project path]/src/scripts/start.js:1
(function (exports, require, module, __filename, __dirname) { const {Server} = require('..');
                                                                    ^
SyntaxError: Unexpected token {

Typical error when I got a JS file with ES6 syntax and tried to run it without passing throught Babel (webpack). And, indeed, I didn't see any Webpack output on the terminal.

In fact... I saw webpack on package.json as a dev dependency. But I didn't saw any webpack.config.js file.

I think we're supposed to assign vue-webpack object to the hypothetical file webpack.config.js.
Or am I missing something? 🤔

Unexpected Identifier

@xpepermint I was trying to work with your template; however, after npm run start i got this error in cmd

 async listen () {
        ^^^^^^
SyntaxError: Unexpected identifier
    at Object.exports.runInThisContext (vm.js:76:16)
    at Module._compile (module.js:542:28)
    at Object.Module._extensions..js (module.js:579:10)
    at Module.load (module.js:487:32)
    at tryModuleLoad (module.js:446:12)
    at Function.Module._load (module.js:438:3)
    at require (internal/module.js:20:19)
    at Object.<anonymous> (D:\projects\testProjects\sandboxes\vuess\src\index.js:1:80)
    at Module._compile (module.js:570:32)
    at Object.Module._extensions..js (module.js:579:10)

Cool things, but what about render data from DB?

Hey, cool repo's, but what you think about integrate backend datas — pass data from back databases (Mongo/Mysql/other) to vue components, such as jade/pug render options? And how it realize without compile to frontend bundle?

Which component to render based on route param

Hey guys... it's me again.. Hahaha

I've been trying to make Express route /templates/{id}. And depending on the id param I'll render a different component.

There's any way, using the project structure, you guys thought on how to route with this kind of mindset?

I'm a bit lost in this structure... 🤔

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.