Build a Complete Food Delivery System with Spring Boot and Vue – Step‑by‑Step Guide

This tutorial walks you through creating a full‑stack food‑delivery application using Spring Boot for the backend, Vue.js for the frontend, MySQL and MongoDB for data storage, and provides detailed setup commands, module descriptions, and launch instructions.

JavaEdge
JavaEdge
JavaEdge
Build a Complete Food Delivery System with Spring Boot and Vue – Step‑by‑Step Guide

Technology Stack

Core framework: Spring Boot

Database layers: Spring Data JPA / Spring Data MongoDB

Connection pool: Druid

Cache: Ehcache

Frontend: Vue.js

Databases: MySQL 5.5+ and MongoDB 4.0 (avoid newer 4.2)

Modules

flash-waimai-mobile – mobile site

flash-waimai-manage – admin management system

flash-waimai-api – Java API service

flash-waimai-core – core library

flash-waimai-generate – code generation module

Quick Start

Data is stored in MySQL (for basic management data) and MongoDB (for business data). Create the MySQL database with the following statements:

CREATE DATABASE IF NOT EXISTS waimai DEFAULT CHARSET utf8 COLLATE utf8_general_ci;
CREATE USER 'waimai'@'%' IDENTIFIED BY 'waimai123';
GRANT ALL privileges ON waimai.* TO 'waimai'@'%';
FLUSH PRIVILEGES;

After the MySQL database is ready, start the flash-waimai-api service; it will auto‑initialize data.

Install MongoDB and restore the provided dataset using: mongorestore.exe -d flash-waimai d:\elm Test data (large JSON dump) is available via Baidu Cloud; download the archive, extract it to d:\elm, then run the command above.

Download image assets for merchants and food items (also hosted on Baidu Cloud) and place them in the directory configured by t_sys_cfgsystem.file.upload.path.

Run Management Platform

Enter the flash-waimai-manage directory.

Execute npm install --registry=https://registry.npm.taobao.org.

Run npm run dev.

Open http://localhost:9528 and log in with username admin and password admin.

Run Mobile Frontend

Enter the flash-waimai-mobile directory.

Execute npm install --registry=https://registry.npm.taobao.org.

Run npm run local.

Open http://localhost:8000 to view the mobile site.

Screenshots

Backend Management Interface:

Backend Management
Backend Management
Backend Management 2
Backend Management 2
Backend Management 3
Backend Management 3

Mobile App Screens:

Mobile Home
Mobile Home
Mobile List
Mobile List
Mobile Detail
Mobile Detail
Original Source

Signed-in readers can open the original source through BestHub's protected redirect.

Sign in to view source
Republication Notice

This article has been distilled and summarized from source material, then republished for learning and reference. If you believe it infringes your rights, please contactadmin@besthub.devand we will review it promptly.

Vuefull-stackfood deliveryspring-boot
JavaEdge
Written by

JavaEdge

First‑line development experience at multiple leading tech firms; now a software architect at a Shanghai state‑owned enterprise and founder of Programming Yanxuan. Nearly 300k followers online; expertise in distributed system design, AIGC application development, and quantitative finance investing.

0 followers
Reader feedback

How this landed with the community

Sign in to like

Rate this article

Was this worth your time?

Sign in to rate
Discussion

0 Comments

Thoughtful readers leave field notes, pushback, and hard-won operational detail here.