xpepermint / vue-cli-template Goto Github PK
View Code? Open in Web Editor NEWA simple server-side rendering CLI template for Vue.js.
A simple server-side rendering CLI template for Vue.js.
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?
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? 🤔
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... 🤔
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!
@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)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.