richar-dada / cakeshop Goto Github PK
View Code? Open in Web Editor NEW基于nodejs、express、mongodb的一个简约、小型的电商网站
基于nodejs、express、mongodb的一个简约、小型的电商网站
wap网站,电脑访问格式不全。初体验很好的。
node npm mongdb环境配置基本没什么问题,在npm install 之后是缺少了cross-env 和 nodemon
命令分别是:npm i cross-env --save-dev
npm install -g nodemon
还有一点我是关掉防火墙访问的,继续看下,谢谢。。
1、index.js 是不是要加上这句 不然好像出错 ‘use strict’ 还有怎么设置env.NODE_ENV 我把代码改了就能正常启动
'use strict';
let NODE_ENV = process.env.NODE_ENV;
if(NODE_ENV == 'dev'){
require('./src/app.js');
console.log('dev');
}else {
require('./dist/app.js');
console.log('dist');
}
2、启动了提示说 ‘环境启动777’ 但我通过浏览器访问 http://localhost:7777/index.js 提示说 Cannot GET /index.js
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.