Table of Contents generated with DocToc
The Web Template Project is a template for starting new web projects at Caicloud.
This Template
- is a SPA with React and Node.js Project using TypeScript
- uses Less as preprocessor
- testing with Jest and Enzyme
- uses webpack as module bundler
The template project is in alpha status.
- lint
- git hooks
- tests
yarnyarn watchBy default, webpack-dev-server listens to the m12n.port in package.json
TBD.
docker run -p <port>:3000 cargo.dev.caicloud.xyz/release/x-web:<VERSION> port MUST be one of endpoint-ports of modularize-web.
├── .github
│ ├── ISSUE_TEMPLATE.md
│ └── PULL_REQUEST_TEMPLATE.md
├── .gitignore
├── CHANGELOG.md
├── Makefile
├── OWNERS
├── README.md
├── build
│ └── x-web
│ └── Dockerfile
├── docs
├── package.json
├── release
│ └── x-web.yaml
├── client
│ ├── components
│ ├── menus
│ └── routes
├── server
├── scripts
│ └── read_cpus_available.sh
└── yarn.lock
A brief description of the layout:
.githubhas two template files for creating PR and issue. Please see the files for more details..gitignorevaries per project, but all projects need to ignore node_modules directory.CHANGELOG.mdcontains auto-generated changelog information.Makefileis used to build the project. You need to tweak the variables based on your project.OWNERScontains owners of the project.README.mdis a detailed description of the project.buildcontains scripts, yaml files, dockerfiles, etc, to build and package the project.docsfor project documentations.releasechart for production deployment.scriptsshell scripts for extra worksclientfor client side codes.serverfor server side codes, if any.