This is get-started project for Vue.js and Node.js(Koa)
cd Wepay-Business-System
# install dependencies
npm install
Create an empty database with the configuration below
- Name: Wepay
- Character Set: utf8
- Collation: utf8_general_ci
Import the data with SQL script
mysql -u root -p wepay < doc/wepay.sql
Modify database connection in server/config/db.js
const db = new Sequelize('mysql://root:XXXX@localhost/Wepay',{
define: {
timestamps: false
}
})
# serve with hot reload at localhost:8080
npm run dev
# serve with hot reload at localhost:8889
npm run server
sudo npm install -g http-server
cd server/controller/images
http-server -p 9111