Giter Club home page Giter Club logo

cloudcompute's Introduction

使用说明

  1. git clone 项目
  2. 安装docker docker-composer
  3. 在mean-docker下 sudo ./test

项目功能

  1. 实现银行权限管理
  2. 账户之间的转账
  3. 用户修改个人信息
  4. 用户注册账户

部署


开发说明

本地开发环境配置

  1. 本地安装 docker docker-composer
  2. 拉取mongodb镜像
  3. npm install
  4. npm start

文件目录结构

  • 前端

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

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

    • 本地docker mongo连接配置文件 config/database.js
    • express-server/app/models
      • 每一个表为一个model,统一命名为xx model.js
    • express-server/app/routes.js
      • 在每建完一个表后在该文件最顶行增加
        var Todo = require('./models/todo')
      
  • docker本地环境配置

    • 安装docker(网上教程)
    • 安装docker composer
    • docker中安装mongo镜像
      • sudo docker pull mongo 拉取远程镜像
      • sudo docker run --name mongo -d mongo 在后台运行name为docker
      • sudo docker start mongo 运行镜像

接口需求文档

登陆页面

  • 获取所有用户名与password

用户信息

  • 根据id获取用户信息
  • 根据id修改用户信息

银行卡号页面

  • 创建银行卡号
  • 删除银行卡号(暂缓)

转账记录

  • 根据id查看本人转账记录

每次登上服务器后 修改

  • database.js
  • test

cloudcompute's People

Contributors

photobylucas avatar mikurenluka avatar forlawa 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.