The nodejs+vue campus take-out ordering and distribution system recommended for computer graduation design topics

The design task of this time is to design a campus take-out delivery system based on the front-end of Vue+Elementu, through which the management of campus take-out distribution and the user’s campus take-out distribution function can be satisfied. The main functions of the system include: personal center, user management, delivery staff management, food classification management, specialty food management, order information management, order cancellation management, delivery order management, delivery cancellation management, delivery notification management, system management and other functions .

The administrator can log in according to the account given by the system. After logging in, he can enter the campus food delivery system and manage all modules of the campus food delivery system. Including viewing and modifying your personal information and login password.

More and more students like to use the front-end Vue+nodejs technology combination as their graduation project. In fact, it is a very novel graduation project. In many completed projects, it can be regarded as a bright spot for teachers. Also give yourself a lot of points. It is hundreds of times stronger than those Java book management, invoicing system and other systems that have remained unchanged for decades. At least in the teacher’s opinion, you are still keeping up with the Internet trend.

The Nodejs+express+vue+Elementui+mysql system of this project is developed with vscode software, and the web-based B/S architecture is designed. The front-end uses vue.js+Elementui to separate the front-end and back-end, and the front-end framework uses the more popular progressive javaScript Framework Vue.js. Use Vue-Router and Vuex to realize dynamic routing and global state management, Ajax to realize front-end and back-end communication, and Element UI component library to quickly shape pages. It is very suitable for learning as a reference material for computer majors. The main programming languages ​​are nodejs and mysql. It fully guarantees the system code’s good readability, practicability, easy expansion, versatility, ease of post-maintenance, convenient operation, and concise pages.

Today, with the rapid development of the Internet, all areas of our lives involve the application of computers, including the network application of the campus food delivery system. Online management systems in foreign countries are already very common, but domestic online management systems may still be in the start-up stage. The campus takeaway delivery system adopts nodejs technology and is developed based on mysql, which realizes personal center, user management, delivery staff management, food classification management, special food management, order information management, order cancellation management, delivery order management, delivery cancellation management, delivery management This system has good compatibility and adaptability, provides users with more information on campus take-out delivery, and also provides a good platform to improve the core competitiveness of the system.

import { version } from '../../package.json'
import { Router } from 'express'
import { Op } from 'sequelize'
import toRes from '../lib/toRes'
import UsersModel from '../models/UsersModel'
import jwt from 'jsonwebtoken'

export  default ({ config, db }) => {
     let api = Router()
     // user login interface 
    api.post( '/login' , async (req, res) => {

        try {

            let userinfo = await UsersModel.findOne({ where: { username: req.query.username, password: req.query.password } })
            if (userinfo === null) {
                toRes.session(res, -1 , 'Username or password is wrong!' )
                 return ;
            }

            const token = jwt.sign(
                {
                    id: userinfo.dataValues.id,
                    username: userinfo.dataValues.username,
                    role: userinfo.dataValues.role
                },
                config.jwtSecret,
                {
                    expiresIn: 60 * 60 * 24 * 1
                }
            )

            userinfo.dataValues.token = token
            delete userinfo.dataValues.password
            req.session.userinfo = userinfo

            toRes.session(res, 0 , 'Login successful!' , token)
        } catch(err) {

            toRes.session(res, 500 , 'Server Error!' , '' , 500 )
        }
    })

Contents
Chapter 1 Introduction 5
1.1 Research background 5
1.2 Current status of system research 5
1.3 Functions implemented by the system 6
1.4 Features of system implementation 6
1.5 Organizational structure of this paper 6
Chapter 2 Development technology and environment configuration 7
2.1 Introduction to nodejs language 7
2.2 Vue technology 8
2.3 MySQL Environment Configuration 8
2.4 vscode Environment Configuration 9
2.5 Introduction to MySQL Database 9
2.6 B/S Architecture 9
Chapter 3 System Analysis and Design 11
3.1 Feasibility Analysis 11
3.1.1 Technical Feasibility 11
3.1.2 Operational Feasibility 11
3.1 .3 Economic Feasibility 11
3.2 Demand Analysis 12
3.3 Overall Design 12
3.4 Database Design and Implementation 13
3.4.1 Database Conceptual Structure Design 13
3.4.2 Database Specific Design 14
Chapter IV Specific Implementation of System Functions 22
4.1 System Function Modules 22
4.2 Administrator Function Module 25
Chapter 5 System Testing 29
Summary 30
References 31
Acknowledgements 32

Leave a Comment

Your email address will not be published. Required fields are marked *