GithubHelp home page GithubHelp logo

6zc / cloudcompute Goto Github PK

View Code? Open in Web Editor NEW

This project forked from photobylucas/cloudcompute

0.0 0.0 0.0 778 KB

License: Apache License 2.0

Dockerfile 3.44% JavaScript 51.30% HTML 22.40% Shell 0.86% Vue 22.01%

cloudcompute's Introduction


开发说明

文件目录结构

  • 前端

    • meandocker中的vue-client文件 基于vue构建
    • 构建后打包的静态文件模板在express-server中的dist
    • 计划引入 axios element.ui
    • 通过接口直接请求后端输出
  • 后端

    • express-server文件
      • server.js
        • 后端文件入口 定义express实例
        • 引入后端依赖文件
      • express-server/app/routes.js
        • 为数据的接口输出,包括
          • post 增加
          • get 获取
          • delete 删除
          • patch 更新
        • 请求接口格式
          • 第一个参数为接口请求的地址
          • 第二个参数为接口请求的回调函数
            app.get('/api/todos', function (req, res) {
                getTodos(res);
            })
          
  • 数据库

    • express-server/app/models
      • 每一个表为一个model,统一命名为xx model.js
    • express-server/app/routes.js
      • 在每建完一个表后在该文件最顶行增加
        var Todo = require('./models/todo')
      

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.