Giter VIP home page Giter VIP logo

vue_trpc_example's Introduction

Vue 3 + TypeScript + Vite + Trpc

vue3和trpc混合开发的例子的,可以参考改装,也可以直接clone下来npm i使用

命令使用

  • dev:vue 启动vue的开发调试
  • dev:node 启动node服务的开发调试
  • build:all 同时打包vuenode的项目代码,打包目录分别是build_vuebuild_node

注意事项

  • 改动vue端口,到vite.config.vue.ts
  • 改动node端口,到vite.config.node.ts,同时在src/App.vue里有引用node端口,也是需要修改.
  • node的打包由于使用VitePluginNode插件,导出来是个方法,需要额外调用!
  • 其实可以声明一份json共同读取同个端口,但是感觉给框架上了很多束缚,那就这样吧~~
  • 可能我的做法不是最优解,最重要是玩得开心!!!

vue_trpc_example's People

Contributors

jeefyang avatar

Watchers

 avatar

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.