Giter VIP home page Giter VIP logo

pinetodo's Introduction

pinetodo

青松土豆,轻松管理待办事项。

参考番茄土豆, 采用vue2.0 + express技术栈搭建一个demo项目。

开发过程

express

初始化项目: cd server express --no-view --git server

vue

利用vue-cli工具初始化项目: vue create client

数据库

选用MongoDB吧,直接上mongoose

将server/config/db.json.template更名为db.json,填写对应的mongodb连接配置

约定

增删改查:add/get/edit/remove

实体

todospace(待办空间)

Todo:待办
---
id 唯一标识
content 待办内容
createTime 创建时间
updateTime 更新时间
creator 创建人
editor  编辑人
status  状态(1 - 未完成,2 - 完成)
property 特殊属性(0 - 存在,1 - 删除)

workspace(工作空间)

Record:记录
---
id 唯一标识
content 记录内容
period 记录周期
interval 记录间隔
startTime 开始时间
completeTime 完成时间
endTime 结束时间
createTime 创建时间
updateTime 更新时间
creator 创建人
editor  编辑人
property 特殊属性(0 - 存在,1 - 删除, 2 - 补单)

user (用户)

User: 用户
---
id 唯一标识
uid 用户ID
username 用户名
password 密码
email 邮箱
phone 电话
createTime 创建时间
updateTime 更新时间
property 特殊属性(0 - 存在,1 - 删除)

setting (设置)

Setting: 设置
---
id 唯一标识
uid 用户ID
period 记录周期
interval 记录间隔
updateTime 更新时间
editor 编辑人

遗留问题

用setInterval的时间精度,有误差,勉强还能容忍,大概+3s左右

pinetodo's People

Contributors

ldc4 avatar

Watchers

James Cloos 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.