Code Monkey home page Code Monkey logo

Comments (6)

skyvow avatar skyvow commented on August 15, 2024

@luoxiaohui public/build 目录下是静态资源文件,只要 Node 正常部署即可啊。
app.use((req, res, next) => { if(req.path.indexOf('/api') === -1) { return res.render('index') } return next() })
当访问路径 req.path 不包括 /api 时,都转发到 AngularJS 的 ng-app (views/index.hbs)

from m-mall-admin.

luoxiaohui avatar luoxiaohui commented on August 15, 2024

@skyvow 还是没理解你意思,我Node是正常部署了啊。小程序也能正常访问到本地的3000端口,但是web管理系统,我还是不知道如何启动起来,你说的npm run build,其实可以看作是打生产包吧,那测试环境如何调试呢?我之前只用过一段时间的vue,vue是有命令npm run dev进行debug联调的,那在angular里面如何进行debug联调呢?

from m-mall-admin.

luoxiaohui avatar luoxiaohui commented on August 15, 2024

我在浏览器中直接访问localhost:3000和localhost:8080,都不行的

from m-mall-admin.

luoxiaohui avatar luoxiaohui commented on August 15, 2024

大佬能拉个群吗?这样你大家能互相帮忙快速熟悉项目的

from m-mall-admin.

luoxiaohui avatar luoxiaohui commented on August 15, 2024

做个付费群也行的啊

from m-mall-admin.

GaryLiLi avatar GaryLiLi commented on August 15, 2024

请问解决了吗?现在前台调用后台的3000/api接口是正常的,但是后台管理页面404

from m-mall-admin.

Related Issues (20)

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.