GithubHelp home page GithubHelp logo

richar-dada / cakeshop Goto Github PK

View Code? Open in Web Editor NEW
8.0 8.0 4.0 3.17 MB

基于nodejs、express、mongodb的一个简约、小型的电商网站

JavaScript 89.41% Ruby 0.31% PowerShell 0.15% CSS 2.07% HTML 8.06%

cakeshop's People

Contributors

richar-dada avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

cakeshop's Issues

简单说下过程

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

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.