Skip to content
master
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
src
Sep 16, 2018
Sep 14, 2018
Sep 14, 2018
Sep 14, 2018
Sep 14, 2018

README.md

Server side rendering with Vuejs and Node.js

Implementation of vue-server-renderer with Node.js and vuejs

Available in awesome-vue

Development

  npm run dev

Build without server side rendering

  npm run build

Build with node and server side rendering

  npm run build-server

In production

  npm start

vue-server-renderer implementation

app.get('*', (req, res) => {
   renderer.renderToString({}, (err, html) => {
		if (err) {
			return res.sendStatus(500)
		}
		res.send(index.replace('<div id=app></div>', html))
	})
})

Contribution

All contributions are welcome just open a pull request and explain what you did :D

About

Server side render vuejs with nodejs without nuxt

Topics

Resources

Releases

No releases published

Packages

No packages published
You can’t perform that action at this time.