Giter Site home page Giter Site logo

egg-commerce's Introduction

egg-commerce

线上测试地址

13.229.236.130:3000

egg / mysql 开发电商平台 集成支付宝面对面支付、手机网站唤醒APP支付

相关栈

node / mysql / egg / sequelizejs / redis / 支付宝支付

本地开发

1.找到config/config.default.js 和config/plugin.js 确保alinode 配置和插件已经注释

2.然后找到在config/config.default.js 配置你的数据库环境

$ npm i
$ npm run dev
$ open http://localhost:7071/

API 文档

用户模块

前台商品展示及购物车

前台收货地址

前台订单及支付

后台商品分类管理

后台商品管理

后台管理订单

egg-commerce's People

Contributors

sfyr111 avatar tboevil avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

egg-commerce's Issues

跑不起来

2019-12-30 17:53:49,686 INFO 5119 [master] node version v12.13.1
2019-12-30 17:53:49,688 INFO 5119 [master] egg version 2.26.0
sequelize deprecated String based operators are now deprecated. Please use Symbol based operators for better security, read more at http://docs.sequelizejs.com/manual/tutorial/querying.html#operators node_modules/sequelize/lib/sequelize.js:245:13
assert.js:374
throw err;
^

AssertionError [ERR_ASSERTION]: config.alinode.appid required
at module.exports (/Users/zhaoyoulu/Documents/nodelsLearn/product/egg-commerce/node_modules/egg-alinode/agent.js:15:3)
at Hook.configDidLoad (/Users/zhaoyoulu/Documents/nodelsLearn/product/egg-commerce/node_modules/egg-core/lib/lifecycle.js:91:9)
at Lifecycle.triggerConfigDidLoad (/Users/zhaoyoulu/Documents/nodelsLearn/product/egg-commerce/node_modules/egg-core/lib/lifecycle.js:145:14)
at Lifecycle.triggerConfigWillLoad (/Users/zhaoyoulu/Documents/nodelsLearn/product/egg-commerce/node_modules/egg-core/lib/lifecycle.js:139:10)
at AgentWorkerLoader.loadCustomAgent (/Users/zhaoyoulu/Documents/nodelsLearn/product/egg-commerce/node_modules/egg-core/lib/loader/mixin/custom.js:45:20)
at AgentWorkerLoader.load (/Users/zhaoyoulu/Documents/nodelsLearn/product/egg-commerce/node_modules/egg/lib/loader/agent_worker_loader.js:23:10)
at new Agent (/Users/zhaoyoulu/Documents/nodelsLearn/product/egg-commerce/node_modules/egg/lib/agent.js:24:17)
at Object. (/Users/zhaoyoulu/Documents/nodelsLearn/product/egg-commerce/node_modules/egg-cluster/lib/agent_worker.js:28:15)
at Module._compile (internal/modules/cjs/loader.js:959:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:995:10)
at Module.load (internal/modules/cjs/loader.js:815:32)
at Function.Module._load (internal/modules/cjs/loader.js:727:14)
at Function.Module.runMain (internal/modules/cjs/loader.js:1047:10)
at internal/main/run_main_module.js:17:11 {
generatedMessage: false,
code: 'ERR_ASSERTION',
actual: '',
expected: true,
operator: '=='
}
2019-12-30 17:53:51,144 ERROR 5119 nodejs.AgentWorkerDiedError: [master] agent_worker#1:5120 died (code: 1, signal: null)
at Master.onAgentExit (/Users/zhaoyoulu/Documents/nodelsLearn/product/egg-commerce/node_modules/egg-cluster/lib/master.js:425:17)
at Master.emit (events.js:210:5)
at Messenger.sendToMaster (/Users/zhaoyoulu/Documents/nodelsLearn/product/egg-commerce/node_modules/egg-cluster/lib/utils/messenger.js:137:17)
at Messenger.send (/Users/zhaoyoulu/Documents/nodelsLearn/product/egg-commerce/node_modules/egg-cluster/lib/utils/messenger.js:102:12)
at ChildProcess. (/Users/zhaoyoulu/Documents/nodelsLearn/product/egg-commerce/node_modules/egg-cluster/lib/master.js:289:22)
at Object.onceWrapper (events.js:300:26)
at ChildProcess.emit (events.js:210:5)
at Process.ChildProcess._handle.onexit (internal/child_process.js:272:12)
name: "AgentWorkerDiedError"
pid: 5119
hostname: zhaoyouludeMacBook-Air.local

2019-12-30 17:53:51,144 ERROR 5119 [master] agent_worker#1:5120 start fail, exiting with code:1
2019-12-30 17:53:51,144 ERROR 5119 [master] exit with code:1
Error: /Users/zhaoyoulu/Documents/nodelsLearn/product/egg-commerce/node_modules/egg-bin/lib/start-cluster {"port":7001,"workers":1,"baseDir":"/Users/zhaoyoulu/Documents/nodelsLearn/product/egg-commerce","framework":"/Users/zhaoyoulu/Documents/nodelsLearn/product/egg-commerce/node_modules/egg"} exit with code 1
at ChildProcess. (/Users/zhaoyoulu/Documents/nodelsLearn/product/egg-commerce/node_modules/common-bin/lib/helper.js:56:21)
at Object.onceWrapper (events.js:300:26)
at ChildProcess.emit (events.js:210:5)
at Process.ChildProcess._handle.onexit (internal/child_process.js:272:12) {
code: 1
}
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] dev: egg-bin dev --port 7001
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] dev script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR! /Users/zhaoyoulu/.npm/_logs/2019-12-30T09_53_51_164Z-debug.log
zhaoyoulu@zhaoyouludeMacBook-Air egg-commerce %

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.