hai-27 / store-server Goto Github PK
View Code? Open in Web Editor NEWvue-store项目后端。基于Node.js(Koa)实现的电商后端项目。
Home Page: http://106.15.179.105/
vue-store项目后端。基于Node.js(Koa)实现的电商后端项目。
Home Page: http://106.15.179.105/
bin/sh: line 7: npm: command not found /bin/sh: line 9: pm2: command not fou
同时接口停用故障(泪流满面)
This version only supports MySQL5.x, does not support MySQL 8.x. It will cause errors if using MySQL8.x, since MySQL8.x does not support DESC in sql query.
谢谢已找到
./app/middleware目录下的RewriteUrl.js文件名跟app.js里对应语句所指的文件路径不对应。
// 为静态资源请求重写url
const rewriteUrl = require('./app/middleware/rewriteUrl');
app.use(rewriteUrl);
搞了半天,一直在报找不到模块的错,文件名大小写的问题
老哥, 有偿帮忙告诉我咋弄后端..
大哥有没有完整的API
路由汇总可以直接fs读取routes
/**
* 校验用户信息是否符合规则
* @param {Object} ctx
* @param {string} userName
* @param {string} password
* @return:
*
*/
小白我想问一下代码中这种风格是用了什么插件或者是什么语法之类的吗?
在所有依赖完成后,node app.js 显示notfound
请问怎么解决呀
首先你的本地需要有node.js执行环境、npm和Mysql数据库。
clone项目到本地。
MySQL建库建表,根目录的storeDB.sql有建库建表sql语句。根据本地数据库连接的相关设置修改根目录config.js中关于数据库连接的配置。
自行插入数据到数据库,根目录的analogDataSql.sql有虚拟数据插入语句。
进入项目目录(cd store-server)。
安装依赖(npm install)。
-- npm install -g @vue/cli
-- npm install vue-router
-- npm i koa
-- npm i koa2
npm i -g nodemon
(从package.json中验证了各个依赖的版本,在node_modules目录中验证这些依赖已经存在)
运行项目node app.js。
或:nodemon app.js
从浏览器中输入:
htt://127.0.0.1:3000
不知道为什么页面是Not Found, 这个过程有什么问题么?谢谢!
我在使用python+drf进行后端项目重构的时候把API文档完成了,下面是项目地址
https://github.com/Miki-Hunter/-store-server-django
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.