GithubHelp home page GithubHelp logo

todos's Introduction

在校大作业

  • node >=8.0.0

  • 目录结构

    • app 整个应用

      • controller 控制器 用于解析用户的输入,处理后返回相应的结果
      • service 服务 用于编写业务逻辑层 (使用model时首字母大写)。
      • extend egg框架扩展
      • middleware 中间件
      • model 用于放置领域模型
      • web 前端项目
    • config 配置文件 sequelize数据连接 等

    • database 数据库有关文件,通过sequelize数据库初始化;

Install

$ npm install 安装依赖

Usage

npm install -g npx 安装npx (需要修改数据库编码配置,默认是不能输入中文的,需要修改编码格式为utf8) npx sequelize db:create 创建数据库 npx sequelize db:migrate 创建数据表 npx sequelize db:seed:all 插入必要数据

开发

$ npm run dev
$ open http://localhost:7001/ or http:localhost:8000

启动整个项目

$ npm run start
$ open http://localhost:7001

todos's People

Contributors

coldrainc avatar

Watchers

 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.