Coder Social home page Coder Social logo

refactor-bs-server's Introduction

refactor-BS-server

毕业设计——基于node.js和mysql的学生作业管理系统后台程序重构中

运行步骤

  • 1、安装mysql数据库,并在config/mysql.db.config.js配置相应的数据库信息

    module.exports = {
        host: 'localhost',
        user: '用户名',
        password: '密码',
        // 数据库要手动建
        database: '数据库名',
        port: '3306'
    }
  • 2、在src/model/ref.js文件中,将这段代码取消注释,即可创建对应表结构,并填入默认数据,成功后,还是要注释掉,要不每次重启程序,数据库都会改成默认数据

    /* 创建默认数据 */
    // sequelize.sync({force: true}).then(()=>{
    //     defaultUser()
    // })      
  • 3、使用npm i命令或者yarn install安装相应依赖

  • 4、使用npm run start或者yarn start命令启动后台程序服务

  • 5、使用浏览器进入http://localhost:9000/swagger#/网址,可以使用swagger文档进行测试

refactor-bs-server's People

Contributors

linzhe141 avatar

Watchers

 avatar

refactor-bs-server's Issues

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.