mirror of
https://github.com/aelve/guide.git
synced 2024-12-29 00:24:01 +03:00
e51268fb7e
* TestCafe added to project. First test written * Search input test added * Seacth input test changed, travis job for testcafe tests added * Travis bugfix test * Travis testcafe bugfix test try 2 * Travis testcafe bugfix test ry 3 * Travis testcafe test sleep increased to 10 * Test adding category added but bug with click occurs - check!!! * Category test (testing the group where test was creating) added - bug fix * Article component rewrite * Article component rewritten * Big with rendering content.html in v-for * Collapse bug fix * MInor category visual changes/fixes * Description, reactivity bug fix * merge * Refactoring after code review * Conflict in styles resolved |
||
---|---|---|
.. | ||
build | ||
client | ||
server | ||
.babelrc | ||
.editorconfig | ||
.gitignore | ||
config.json | ||
index.d.ts | ||
index.html | ||
package-lock.json | ||
package.json | ||
postcss.config.js | ||
README.md | ||
tsconfig.json | ||
tslint.json |
@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
- Runclient:build
andserver:build
at same time. Please run this command for deployment.start:dev
- Runclient:dev
andserver:dev
at same time. Please run this command for development.start:prod
- Start ssr server in production environment. You should runbuild-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 underdist/
to your location and setup your API Gateway.