Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ali322/isomorphic-boilerplate
isomorphic webapp boilerplate
https://github.com/ali322/isomorphic-boilerplate
isomorphic koa2 react react-router redux spa ssr
Last synced: 10 days ago
JSON representation
isomorphic webapp boilerplate
- Host: GitHub
- URL: https://github.com/ali322/isomorphic-boilerplate
- Owner: ali322
- Created: 2015-07-09T07:34:05.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2017-11-22T03:44:03.000Z (almost 7 years ago)
- Last Synced: 2024-10-11T09:14:45.644Z (about 1 month ago)
- Topics: isomorphic, koa2, react, react-router, redux, spa, ssr
- Language: JavaScript
- Homepage:
- Size: 6.88 MB
- Stars: 2
- Watchers: 2
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Isomorphic Boilerplate
[![Build Status](https://travis-ci.org/ali322/isomorphic-boilerplate.svg)](https://travis-ci.org/ali322/isomorphic-boilerplate)
[![Dependency Status](https://gemnasium.com/ali322/isomorphic-boilerplate.svg)](https://gemnasium.com/ali322/isomorphic-boilerplate)
[![Code Climate](https://codeclimate.com/github/ali322/isomorphic-boilerplate/badges/gpa.svg)](https://codeclimate.com/github/ali322/isomorphic-boilerplate)yet another isomorphic project boilerplate [中文文档](./README_zh.md)
Develop
===
1. clone to your local disk `git clone https://github.com/ali322/isomorphic-boilerplate`
2. run `npm install`
3. run `npm install nva -g`
4. run `nva vendor` to build vendor libraries
5. run `nva dev` to start develop server
6. run `npm run lint` to lint source code
7. run `npm test` to run testsDeploy
===
1. run `nva build` release static source and inject to html
2. upload your project to deploy environment
1. run `npm install --production`
2. run `npm install pm2 -g` (more instructions in [pm2 documention](https://github.com/Unitech/PM2))
3. run `pm2 start app.js --name ` to deployDirectory structure
===```sh
test/
|-- client/ #client unit tests
|-- server/ #server unit tests
client/
|-- asset/ #images,fonts and so on
|-- bundle/
|-- common/ #public css and js
|-- component/ #component's css
|-- error/ #error page's entry js and css
|-- index/ #index page's entry js and css
|-- .../ #more your own page's entry js and css,like index page
|-- dist/ #compiled client assets
server/
|-- controller/ #express routes directory
|-- lib/ #server libraries,util and helper modules inside
|-- router.js #server router,all the routes is defined here
|-- bootstrap.js #initialize application,load middlewares and setup
view/
|-- layout.html #global layout template
|-- index.html #index page's template
|-- *.html #more your own page's template
app.js #web application enrty file
```## License
[MIT License](http://en.wikipedia.org/wiki/MIT_License)