Commit 283c886c authored by Davve's avatar Davve

增加sun项目启动说明

parent be710644
## sun
# sun 后台后端项目启动
vu 前端代码本地调试 第一步:
git clone git@git.wanmeizhensuo.com:alpha/sun.git
brew install npm 第二步:
npm install 搭建python环境,本项目使用python3.6运行,安装好虚拟环境后,进入到项目目录执行
npm run dev pip install -r requirements.txt
\ No newline at end of file
第三步:
启动后端项目:python manage.py runserver 0.0.0.0:8080
################################################################
# sun 前端后端项目启动
第一步:
cd /vu 目录下
第二步:
在目录下执行,npm install
第三步:
配置代理
cd /vu/mock/proxy.js
修改IP,这里的IP是你本机网络IP,端口是后台项目启动端口。
const target = 'http://172.30.8.231:8080'
第四步:
npm run dev
到此整个项目启动完毕。
说明:
sun采用前后端分离,前端请求打到后端,然后通过rpc去venus请求数据。
在启动项目之前,记得配置好路由表和启动venus项目。
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment