With the development of society and science and technology,The Internet has penetrated all around people,The Internet has gradually become an indispensable part of people's lives,With the rapid development of the Internet,The term system is no longer unfamiliar,More and more bookstores will use the system to customize a personalized system. book sales system nodejs technology, mysql database for development,Realized the home page,personal center,User Management,Book classification management,Book Information Management,System Management,Order management, etc.,The system has good compatibility and adaptability,Provide users with more book sales information,also provides a good platform,So as to improve the core competitiveness of the system.
applet module
(1) Registration and login: login for member registration, you can choose to save the password when logging in.
(2) Commodity browsing: Browse all commodities for purchase.
(3) Commodity search: All commodities can be searched according to key terms.
(4 Recommended products: the most popular products are displayed to users
(5) Personal order management: Manage and delete orders after purchasing goods.
(6) Shopping cart: Users can add and delete shopping carts.
backend module
(1) Commodity management: including the addition, modification, deletion, and marking of commodities. Manage product classification and count the number of products.
(2) Order management: The administrator operates the order, and marks the order for delivery after delivery. And can generate sales reports for order statistics.
(3) Commodity classification management, classifying commodities, which is convenient for users to find the commodities they need according to the categories.
(4) Member management: search and view member information.
environmental needs
1. Operating environment: preferably java jdk 1.8, which is currently the most stable JDK and the most used JDK version.
2.IDE environment: IDEA, Eclipse can csdn. IDEA is recommended;
3.tomcat environment: Tomcat7/Tomcat8/Tomcat9 versions are available
4. Hardware environment: Windows 7/8/10 with more than 1G memory; or Mac OS;
5. Database: MySql version 5.7;
6. Whether Maven project: yes;
technology stack
- Backend: Spring+SpringMVC+Mybatis+Springboot+csdn
- Front end: vue+CSS+JavaScript+jQuery+elementui+csdn
/** * Login related */ @RequestMapping("users") @RestController public class UserController{ @Autowired private UserService userService; @Autowired private TokenService tokenService; /** * Log in */ @IgnoreAuth @PostMapping(value = "/login") public R login(String username, String password, String captcha, HttpServletRequest request) { UserEntity user = userService.selectOne(new EntityWrapper<UserEntity>().eq("username", username)); if(user==null || !user.getPassword().equals(password)) { return R.error("Incorrect account or password"); } String token = tokenService.generateToken(user.getId(),username, "users", user.getRole()); return R.ok().put("token", token); } /** * register */ @IgnoreAuth @PostMapping(value = "/register") public R register(@RequestBody UserEntity user){ // ValidatorUtils.validateEntity(user); if(userService.selectOne(new EntityWrapper<UserEntity>().eq("username", user.getUsername())) !=null) { return R.error("user already exists"); } userService.insert(user); return R.ok(); } /** * quit */ @GetMapping(value = "logout") public R logout(HttpServletRequest request) { request.getSession().invalidate(); return R.ok("exit successfully"); } /** * reset Password */ @IgnoreAuth @RequestMapping(value = "/resetPass") public R resetPass(String username, HttpServletRequest request){ UserEntity user = userService.selectOne(new EntityWrapper<UserEntity>().eq("username", username)); if(user==null) { return R.error("Account does not exist"); } user.setPassword("123456"); userService.update(user,null); return R.ok("Password reset to: 123456"); } /** * list */ @RequestMapping("/page") public R page(@RequestParam Map<String, Object> params,UserEntity user){ EntityWrapper<UserEntity> ew = new EntityWrapper<UserEntity>(); PageUtils page = userService.queryPage(params, MPUtil.sort(MPUtil.between(MPUtil.allLike(ew, user), params), params)); return R.ok().put("data", page); } /** * list */ @RequestMapping("/list") public R list( UserEntity user){ EntityWrapper<UserEntity> ew = new EntityWrapper<UserEntity>(); ew.allEq(MPUtil.allEQMapPre( user, "user")); return R.ok().put("data", userService.selectListView(ew)); } /** * information */ @RequestMapping("/info/{id}") public R info(@PathVariable("id") String id){ UserEntity user = userService.selectById(id); return R.ok().put("data", user); } /** * Get the user's session user information */ @RequestMapping("/session") public R getCurrUser(HttpServletRequest request){ Long id = (Long)request.getSession().getAttribute("userId"); UserEntity user = userService.selectById(id); return R.ok().put("data", user); } /** * save */ @PostMapping("/save") public R save(@RequestBody UserEntity user){ // ValidatorUtils.validateEntity(user); if(userService.selectOne(new EntityWrapper<UserEntity>().eq("username", user.getUsername())) !=null) { return R.error("user already exists"); } userService.insert(user); return R.ok(); } /** * Revise */ @RequestMapping("/update") public R update(@RequestBody UserEntity user){ // ValidatorUtils.validateEntity(user); userService.updateById(user);//Update all return R.ok(); } /** * delete */ @RequestMapping("/delete") public R delete(@RequestBody Long[] ids){ userService.deleteBatchIds(Arrays.asList(ids)); return R.ok(); } }
Table of contents
1 Introduction 1
1.1 Subject Background 1
1.2 Current status of subject research 1
1.3 Preliminary design method and implementation plan 2
1.4 The research content of this paper 2
2 System Development Environment 4
2.1 Introduction to using tools 4
2.2 Environment configuration 4
2.3 Introduction to B/S structure 4
2.4 MySQL database 5
2.5 Introduction to the framework 5
3 System Analysis 6
3.1 System Feasibility Analysis 6
3.1.1 Economic feasibility 6
3.1.2 Technical feasibility 6
3.1.3 Operational Feasibility 6
3.2 System Status Analysis 6
3.3 Functional Requirements Analysis 7
3.4 System Design Rules and Operating Environment 8
3.5 System flow analysis 8
3.5.1 Operation process 8
3.5.2 Adding information flow 9
3.5.3 Delete information flow 10
4 System Design 11
4.1 Main functions of system design 11
4.2 Database Design 11
4.2.1 Database Design Specifications 11
4.2.2 E/R diagram 11
4.2.3 Data Sheet 12
5 System Implementation 25
5.1 System function module 25
5.2 Background module 27
5.2.1 Administrator function module 27
5.2.2 User Function Module 30
6 System Test 33
6.1 Functional testing 33
6.2 Usability Testing 33
6.3 Performance testing 34
6.4 Analysis of test results 34
7 Conclusion 35
References 36
Thanks 37