Giter Club home page Giter Club logo

webapp-template's Introduction

webapp-template

基于koa2,umijs,antd-pro5 的 web 应用模板项目。

技术栈

客户端

  • umijs
  • antd-pro5
  • react
  • dva

服务端

  • koa2
  • koa-router 路由
  • koa-nunjucks-2 模板引擎
  • koa-static 静态资源管理

项目搭建过程

构建和本地部署

使用 docker 构建应用并部署在本地

  • build docker image
# BASH
docker build -t ${your_name}/${image_name}:${tag} .
  • 启动容器
# BASH
docker run --rm -d -p 80:3000 ${your_name}/${image_name}:${tag}

# eg. docker run --rm -d -p 80:3000 zhangss2017/centos:0.1.0
# --rm 容器退出后随之将其删除
# -d 后台运行
# -p 指定端口映射 前者(80)为外界访问应用的端口,后者(3000)是Dockerfile里EXPOSE指定的端口
  • 同步镜像到 docker hub
# BASH
docker push ${your_name}/${image_name}:${tag}

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.