使用前端Vue和后端Node/Express构建的全栈应用程序

网友投稿 950 2022-10-28

使用前端Vue和后端Node/Express构建的全栈应用程序

使用前端Vue和后端Node/Express构建的全栈应用程序

Vue Forum APP — Frontend

A fullstack application built with Vue on the frontend and Node/Express on the backend.

Demo    Backend

This repo demonstrates almost everything you need to know to build a complete fullstack application using Vue and Node/Express. This demo covers things like:

Authentication/Authorization with JWTRoutingCommunicating with a backend APIManaging the state of the app with VuexUploading ImagesForms ValidationHandling errorsLoading statesMore stuff

Running the demo

Install and run the backend projectDownload this repoCreate .env in the root directory, and add:

VUE_APP_API_CLIENT='server'VUE_APP_API_SERVER_BASE_URL='http://localhost:5000'

I'm here assuming that the backend will run on localhost:5000. If you set VUE_APP_API_CLIENT to mock, you'll use data from the mock store, which means you won't need the backend running.

Run npm installRun npm run serve

To build it and run it in production mode:

Run npm run buildRun npm run start

版权声明:本文内容由网络用户投稿,版权归原作者所有,本站不拥有其著作权,亦不承担相应法律责任。如果您发现本站中有涉嫌抄袭或描述失实的内容,请联系我们jiasou666@gmail.com 处理,核实后本网站将在24小时内删除侵权内容。

上一篇:spring data jpa查询一个实体类的部分属性方式
下一篇:Android逆向:AndroidKiller破解Android程序
相关文章

 发表评论

暂时没有评论,来抢沙发吧~