Comments (1)
前端(/static/admin)
- 用户:admin
- 密码:admin888
服务(/docker)
- Redis:存储Session
- MySQL:数据脚本(/java/docs)
后端(/java)
- web.admin:后端接口
- web.member:用户中心
其他
- 功能模块可自行分析,按需运行
默认需通过(http://127.0.0.1:7800/)访问前端项目。
前端项目通过cookie来管理用户登录状态,前端的访问地址需要与接口地址的IP保持一致。
在开发环境(https://github.com/iisquare/fs-project/blob/master/static/admin/.env.development)的配置中,默认为(http://127.0.0.1:7808/),则浏览器中需要通过(http://127.0.0.1:7800/)访问,不然就会产生跨域,导致cookie失效。
在终端中,执行yarn run serve默认提示为(http://localhost:7800)或者(http://192.168.*.*:7800)暂不可用,可按照自身需求在(https://github.com/iisquare/fs-project/blob/master/static/admin/vue.config.js )增加proxy代理解决该问题。
在线上环境中,执行yarn run build会编译到(java/web/admin/src/main/resources/static)目录下,并同bootJar一起打包,即为同域同地址访问。
同样,也可根据自身需求,独立部署前端和后端项目,通过Nginx代理解决跨域问题,此处不再赘述。
from fs-project.
Related Issues (2)
- 为啥要用gradle。。。。 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fs-project.