FaterYU/CafeManagement: SCNU&UoA Cafe Management (github.com)
Follow the installation program
You can use Application without build Back-end by yourself, because author build on cloud server and provide serve
-
Run the following command to download the current stable version of Docker Compose:
sudo curl -L "https://github.com/docker/compose/releases/download/v2.2.2/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
-
To apply executable permissions to binaries:
sudo chmod +x /usr/local/bin/docker-compose
-
Create a soft chain:
sudo ln -s /usr/local/bin/docker-compose /usr/bin/docker-compose
-
Test whether the installation is successful:
docker-compose version # cker-compose version 1.24.1, build 4667896b
The Windows Docker Desktop Edition and Docker Toolbox already include Compose and other Docker apps, so Windows users do not need to install Compose separately.
The Docker Desktop Edition and Docker Toolbox for Mac already include Compose and other Docker apps, so Mac users do not need to install Compose separately.
-
Clone project from GitHub
git clone https://github.com/FaterYU/CafeManagement.git
-
Switch the terminal to the root directory of project
cd CafeManagement
-
Build docker from
docker-compose.yml
docker-compose up -d
The Node.js installation package and source code can be downloaded from: https://nodejs.org/en/download/
The Node official website has changed the linux download version to the compiled version, we can download and decompress it directly and use it:
wget https://nodejs.org/dist/v16.14.2/node-v16.14.2-linux-x64.tar.xz // download
tar xf node-v16.14.2-linux-x64.tar.xz // unzip
cd node-v16.14.2-linux-x64/ // go to directory
./bin/node -v // check node version
# v16.14.2
Install from apt
sudo apt install mysql-server
Start MySQL Service
sudo service mysql restart
- host --> localhost
- user --> cfm
- password --> cfm123456
- database --> cfm
- table --> orders, goods
- Create database
create database cfm;
- create user
create user 'cfm'@'%' identified by 'cfm123456';
- Authorization
grant all on cfmdb.* to 'cfm'@'%';
cd cfm-node
npm install -s
npm start
- Node.js v16.14.2
- [npm v8.5.5]
- MySQL v8.0.28
cd cfm-vue
npm install -s
npm run electron:serve
npm run serve
npm run electron:build
npm run build
cd manage-vue
npm install -s
npm run electron:serve
npm run serve
npm run electron:build
npm run build
cfm-vue
├── README.md
├── babel.config.js
├── jsconfig.json
├── preload.js
├── public
│ ├── favicon.ico
│ ├── index.html
│ ├── logo.ico
├── src
│ ├── App.vue
│ ├── api-http.js
│ ├── assets
│ │ ├── icons
│ │ ├── payment
│ │ └── pictures
│ ├── background.js
│ ├── bus.js
│ ├── components
│ │ ├── APItest.vue
│ │ ├── CartCard.vue
│ │ ├── CartPage.vue
│ │ ├── DetailPage.vue
│ │ ├── DrinkCard.vue
│ │ ├── HomePage.vue
│ │ ├── ManageHome.vue
│ │ └── PaySuccess.vue
│ ├── config
│ │ └── rsa_public_key.pem
│ ├── main.js
│ ├── router.js
│ ├── services
│ │ ├── GoodsService.js
│ │ ├── OrdersService.js
│ │ └── UploadFilesService.js
│ └── utils
│ ├── aes.js
│ ├── crypt_util.js
│ └── rsa.js
└── vue.config.js
manage-vue
├── README.md
├── babel.config.js
├── jsconfig.json
├── public
│ ├── favicon.ico
│ ├── index.html
│ └── logo.ico
├── src
│ ├── App.vue
│ ├── api-http.js
│ ├── assets
│ │ ├── icons
│ │ └── pictures
│ ├── bus.js
│ ├── components
│ │ ├── APItest.vue
│ │ ├── DetailPage.vue
│ │ ├── DrawChart.vue
│ │ ├── DrawPieChart.vue
│ │ ├── DrinkCard.vue
│ │ ├── HomePage.vue
│ │ ├── ManageAPI.vue
│ │ ├── ManageHome.vue
│ │ ├── MonthChart.vue
│ │ ├── OrderDetail.vue
│ │ ├── ProductDetail.vue
│ │ ├── RankingChart.vue
│ │ ├── SingleOrder.vue
│ │ ├── SingleProduct.vue
│ │ ├── TotalProfit.vue
│ │ ├── UploadComp.vue
│ │ ├── UploadProduct.vue
│ │ └── YearChart.vue
│ ├── config
│ │ └── rsa_public_key.pem
│ ├── main.js
│ ├── router.js
│ ├── services
│ │ ├── GoodsService.js
│ │ ├── OrdersService.js
│ │ └── UploadFilesService.js
│ └── utils
│ ├── aes.js
│ ├── crypt_util.js
│ └── rsa.js
└── vue.config.js
cfm-node
├── Dockerfile
├── package-lock.json
├── package.json
├── server.js
├── src
│ ├── config
│ │ ├── db.config.js
│ │ ├── rsa_create.js
│ │ ├── rsa_private_key.pem
│ │ └── rsa_public_key.pem
│ ├── controllers
│ │ ├── file.controller.js
│ │ ├── goods.controller.js
│ │ └── orders.controller.js
│ ├── middleware
│ │ ├── alipay.js
│ │ └── upload.js
│ ├── models
│ │ ├── goods.model.js
│ │ ├── index.js
│ │ └── order.model.js
│ ├── routes
│ │ ├── goods.routes.js
│ │ ├── orders.routes.js
│ │ ├── pay.routes.js
│ │ └── upload.routes.js
│ └── utils
│ ├── aes.js
│ ├── crypt_util.js
│ └── rsa.js
├── uploads
└── uploads-full