{"id":16198724,"url":"https://github.com/ali322/ssr-boilerplate","last_synced_at":"2026-05-07T06:36:27.338Z","repository":{"id":66138190,"uuid":"112445940","full_name":"ali322/ssr-boilerplate","owner":"ali322","description":"ssr frontend project boilerplate","archived":false,"fork":false,"pushed_at":"2020-11-10T06:30:12.000Z","size":382,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-02-13T19:41:34.213Z","etag":null,"topics":["koa","nva","ssr","vue","vue-router","vuex","webpack"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ali322.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2017-11-29T08:09:31.000Z","updated_at":"2020-11-10T06:28:53.000Z","dependencies_parsed_at":null,"dependency_job_id":"1a7a80de-7f9a-42b5-aa00-1af6bcc156d3","html_url":"https://github.com/ali322/ssr-boilerplate","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ali322%2Fssr-boilerplate","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ali322%2Fssr-boilerplate/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ali322%2Fssr-boilerplate/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ali322%2Fssr-boilerplate/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ali322","download_url":"https://codeload.github.com/ali322/ssr-boilerplate/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247697621,"owners_count":20981223,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["koa","nva","ssr","vue","vue-router","vuex","webpack"],"created_at":"2024-10-10T09:14:43.740Z","updated_at":"2026-05-07T06:36:22.308Z","avatar_url":"https://github.com/ali322.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# SSR Boilerplate\n\n[![Build Status](https://travis-ci.org/ali322/ssr-boilerplate.svg?branch=master)](https://travis-ci.org/ali322/ssr-boilerplate)\n[![Dependency Status](https://gemnasium.com/badges/github.com/ali322/ssr-boilerplate.svg)](https://gemnasium.com/github.com/ali322/ssr-boilerplate)\n[![Maintainability](https://api.codeclimate.com/v1/badges/ba09b7efe52888308abc/maintainability)](https://codeclimate.com/github/ali322/ssr-boilerplate/maintainability)\n\nssr(server side render) project boilerplate [中文文档](./README_zh.md)\n\nDevelop\n===\n1. clone to your local disk `git clone https://github.com/ali322/ssr-boilerplate`\n2. run `npm install`\n3. run `npm install nva -g`\n5. run `nva dev` to start develop server\n6. run `npm run lint` to lint source code\n7. run `npm test` to run tests\n\nDeploy\n===\n1. run `nva build` release static source and inject to html\n2. upload your project to deploy environment\n1. run `npm install --production`\n2. run `npm install pm2 -g` (more instructions in [pm2 documention](https://github.com/Unitech/PM2))\n3. run `pm2 start app.js --name \u003cProject Name\u003e` to deploy\n\nDirectory structure\n===\n\n```sh\ntest/\n    |-- client/ #client unit tests\n    |-- server/ #server unit tests\nclient/\n    |-- asset/      #images,fonts and so on\n    |-- bundle/\n        |-- common/ #public css and js\n        |-- component/ #component's css\n        |-- error/  #error page's entry js and css\n        |-- index/  #index page's entry js and css\n        |-- .../    #more your own page's entry js and css,like index page\n    |-- dist/     #compiled client assets\nserver/\n    |-- controller/ #express routes directory\n    |-- lib/        #server libraries,util and helper modules inside\n    |-- router.js   #server router,all the routes is defined here\n    |-- bootstrap.js #initialize application,load middlewares and setup\n    |-- view/\n        |-- layout.html #global layout template\n        |-- index.html  #index page's template\n        |-- *.html      #more your own page's template\napp.js      #web application enrty file\n```\n\n## License\n\n[MIT License](http://en.wikipedia.org/wiki/MIT_License)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fali322%2Fssr-boilerplate","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fali322%2Fssr-boilerplate","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fali322%2Fssr-boilerplate/lists"}