Vue + Node setup
I'm currently in the process of building a new project, this project contains of a backend + web app + single page app.
I've already set up the backend with Node (Typescript), using Hapi and Postgres. Now I'm a bit confused about how to proceed, I'm looking to first build a single page app in Vue, which obviously requires Webpack. My actual web app will be build in Vue as well, and I'm looking to share components between the two applications.
Now I could build this as a separate project, but at least for the single page app I want to use SSR. So my question now is, does anyone have a recommended setup for this.
My current structure looks like this:
- src
|- Server.ts
|- models
|- User.ts
|- ...
- package.json
- tsconfig.json
- ...
Would I simply do; or is there a better way to tackle this?
- server
| - src
|- Server.ts
|- models
|- User.ts
|- ...
| - client
|- components
- package.json
- tsconfig.json
- webpack.config.js
- ...
Posted Aug 4, 2018, 10:22 AM UTC
Take a look at https://github.com/slanatech/vue-monorepo-boilerplate
That's what I was after, kinda confirms what I was thinking too. Thanks!