Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
S
sun
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
钟尚武
sun
Commits
283c886c
Commit
283c886c
authored
Dec 07, 2018
by
Davve
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加sun项目启动说明
parent
be710644
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
35 additions
and
6 deletions
+35
-6
readme
readme
+35
-6
No files found.
readme
View file @
283c886c
## 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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment