1
1
mirror of https://github.com/aelve/guide.git synced 2024-12-25 13:51:45 +03:00
guide/front
2019-01-22 09:04:30 +03:00
..
build removed unused pug loader 2019-01-14 12:47:46 +04:00
client Renami "uid" to "id" everywhere 2019-01-22 09:04:30 +03:00
server [WIP] Remove kinds and add hackage as option (#249) 2019-01-05 16:08:42 +05:00
.babelrc Fully replaced frontend part. Now everything written in typescript. 2018-09-02 23:26:15 +03:00
.editorconfig Fully replaced frontend part. Now everything written in typescript. 2018-09-02 23:26:15 +03:00
.gitignore Fully replaced frontend part. Now everything written in typescript. 2018-09-02 23:26:15 +03:00
config.json [WIP] Remove kinds and add hackage as option (#249) 2019-01-05 16:08:42 +05:00
index.d.ts Fully replaced frontend part. Now everything written in typescript. 2018-09-02 23:26:15 +03:00
index.html removed useless stats in html 2019-01-05 16:36:57 +04:00
package-lock.json https only in package-lock.json 2019-01-17 00:13:26 +11:00
package.json removed unused pug loader 2019-01-14 12:47:46 +04:00
postcss.config.js Fully replaced frontend part. Now everything written in typescript. 2018-09-02 23:26:15 +03:00
README.md Fully replaced frontend part. Now everything written in typescript. 2018-09-02 23:26:15 +03:00
tsconfig.json chagned tsconfig rule 2018-11-25 20:26:10 +03:00
tslint.json Chore/typings and refactor category item actions (#243) 2018-11-21 13:31:31 +03:00

@vert/vue-ssr-template

Vue project template with SSR, Vert and TypeScript support.

A tiny demo to show how to use @vert/core.

You can use this as your vert template.

Features

  • Webpack 4.
  • Vue SSR support.
  • Full TypeScript.
  • Code in OOP.
  • @vert/core support.

Commands

  • client:dev - Start developing environment of client content.
  • client:build - Build client content.
  • server:dev - Start developing environment of ssr server.
  • server:build - Build ssr content.
  • build-all - Run client:build and server:build at same time. Please run this command for deployment.
  • start:dev - Run client:dev and server:dev at same time. Please run this command for development.
  • start:prod - Start ssr server in production environment. You should run build-all first to make it works.

Development

Normally just run start:dev to start both normal http and ssr environment, and then:

  • Go localhost:4000 for normal http environment.
  • Go localhost:5000 for SSR-enabled environment.

Ports setting is stored in build/build-config.js.

Production

Run build-all to files for production.

Then,

  • Send your static files which are located in dist/ to your (CDN) server.
  • If you want to host a SSR server, the simplest way is to send the whole project to somewhere and run start:prod. But you can also build service by your own, just transfer vue-bundle-json files under dist/ to your location and setup your API Gateway.