GithubHelp home page GithubHelp logo

ydong-li / web-template-project Goto Github PK

View Code? Open in Web Editor NEW

This project forked from caicloud/web-template-project

0.0 0.0 0.0 227 KB

A template for starting new web project at Caicloud

Makefile 27.53% Shell 3.07% Dockerfile 2.69% JavaScript 48.05% TypeScript 18.66%

web-template-project's Introduction

Table of Contents generated with DocToc

Web Template Project

About the project

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

Status

The template project is in alpha status.

TODO

  • lint
  • git hooks
  • tests

See also

Getting started

Install

yarn

Run dev-server

yarn watch

By default, webpack-dev-server listens to the m12n.port in package.json

Build image

TBD.

Run container

docker run -p <port>:3000 cargo.dev.caicloud.xyz/release/x-web:<VERSION> 

port MUST be one of endpoint-ports of modularize-web.

Layout

├── .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:

  • .github has two template files for creating PR and issue. Please see the files for more details.
  • .gitignore varies per project, but all projects need to ignore node_modules directory.
  • CHANGELOG.md contains auto-generated changelog information.
  • Makefile is used to build the project. You need to tweak the variables based on your project.
  • OWNERS contains owners of the project.
  • README.md is a detailed description of the project.
  • build contains scripts, yaml files, dockerfiles, etc, to build and package the project.
  • docs for project documentations.
  • release chart for production deployment.
  • scripts shell scripts for extra works
  • client for client side codes.
  • server for server side codes, if any.

web-template-project's People

Contributors

bbbmj avatar caosm avatar ladjzero avatar mingtangliu avatar wangbin0422 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.