Coder Social home page Coder Social logo

kkxujq / task-publishing-system Goto Github PK

View Code? Open in Web Editor NEW
14.0 3.0 8.0 4.98 MB

任务发布系统,可以进行任务发布、执行、分享和获取佣金等操作……

JavaScript 64.27% HTML 35.73%
nodejs mongodb mongoose jade-template-engine

task-publishing-system's Introduction

任务发布系统


[TOC]


任务描述

设计一个任务发布系统,画出流程图,写出数据库设计,并实现代码

  1. 支持登陆注册,用户分为两类,发布者和执行者
  2. 支持任务发布,任务领取,任务执行,任务分享
  3. 发布任务需要支付佣金,完成任务可以获得佣金
  4. 可以将领取的任务分享到朋友圈或微信好友
  5. C执行了B分享(A创建)的任务,C能获取90%的佣金,B获取10%的佣金
  6. 上述B可以是多人,多人共享10%佣金

仓库地址

github.com/kkxujq/task-publishing-system

目录结构

│  .bowerrc
│  .gitignore
│  app.js               // 入口
│  bower.json
│  config.js
│  package.json
│  README.md      
├─models                // 数据库模型
│      task.js
│      users.js    
├─node_modules          // 项目依赖
│  ├─...          
├─public
│  ├─js                 // 页面js文件
│  │      countDown.js
│  │      error.js
│  │      taskDel.js
│  │      ucShare.js
│  │      validation.js     
│  └─libs               // 静态资源
│      ├─task.css
│      ├─bootstrap         
│      └─jquery                     
├─routes                // 路由
│      index.js             // 路由入口
│      login.js
│      resetpwd.js
│      signout.js
│      signup.js
│      task.js     
├─schemas               // Schema模式
│      task.js
│      users.js      
├─utils                 // 工具
│      check.js             // 状态监测
└─views                 // 视图
    ├─layout.jade
    │  
    ├─includes
    │      head.jade
    │      header.jade  
    └─pages
            login.jade
            newTask.jade
            pwdIndex.jade
            pwdReset.jade
            signup.jade
            taskList.jade
            updateTask.jade
            _404.jade
            _adminError.jade
            _ready.jade
            _signinError.jade

流程图

用户相关
任务流程

数据库设计

数据库设计

开发流程

  • 5/4-5/6,(周四-周六) 分析系统设计,简化流程草图和数据库设计,技术选型
  • 5/7-5/8,(周日-周一) 系统架构,开撸代码

技术栈

node.jsmongoDB、express、jade

项目启动流程

1、 安装Node.js

2、 安装MongoDB

  • 2.1、 把MongoDB安装路径下的bin文件目录添加到系统环境变量;
  • 2.2、 设置MongoDB数据库的数据存储路径。

3、 启动MongoDB服务:mongod

  • 3.1、 执行命令:mongod,开启MongoDB服务;
  • 3.2、 执行命令:mongo,可对数据库进行CRUD操作。

4、 安装npm依赖:npm install

5、 安装bower依赖:bower install

6、 启动项目入口文件:node app.js

7、 浏览器查看效果

路由可查看routes\index.js下具体定义,入口路由http://localhost:8888

参考

task-publishing-system's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

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