Giter Club home page Giter Club logo

confusion's Introduction

Commitizen friendly

This project was bootstrapped with Create React App.

Coursera course public repo: https://github.com/jmuppala/conFusion-React

Development

  • UI 框架: Bootstrap
  • JS 库:React (hooks)
  • 服务端开发:Node + Express + MongoDB

Three Tier Architecture

Code Lint

采用了 Airbnb 的 ESLint 配置, 前端 eslint-config-airbnb,后端为 eslint-config-airbnb-base

Cloud Provider

最新项目由阿里云 ECS 迁移到 Heroku 平台

部署流程简化

  1. 自动化脚本部署:
{
  "scripts": {
      "build:ui": "cd path/to/front-end && yarn build --prod && cp -r build path/to/back-end",
      "deploy": "git push heroku master",
      "deploy:full": "yarn build:ui && git add . && git commit -m uibuild && yarn deploy",
      "logs:prod": "heroku logs --tail"
    }
}
  1. github 同步部署

github 同步部署

配置路由

前端路由是虚拟的,阿里云服务器上可以用 Nginx 配置,使用 Heroku 平台时需要在 app.js 中加入以下代码:

const path = require('path')
// ...
// 其他路由写在前面,注意执行顺序
app.get('*', (req, res) => {
    res.sendFile(path.resolve(__dirname, 'build', 'index.html'))
})

Optimization

confusion's People

Contributors

zhyd1997 avatar

Watchers

 avatar  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.