docs(readme): 添加运行提示

This commit is contained in:
jiangteng 2024-01-17 13:35:41 +08:00
parent bf5cebf4af
commit ca9def4f66
2 changed files with 32 additions and 4 deletions

View File

@ -6,9 +6,23 @@
Satellite-track is a program for tracking satellite orbit, developed by cesium, vue and satelliteJS. It supports satellite and satellite constellation orbit display within the next 24 hours (performance considerations); Custom satellite orbit data (TLE) loading is also supported,TLE data is from celestrak;
## Preview
#### [satellite-track】](https://jiangteng2019.github.io/satellite-track/)
#### [Alternate address】](http://120.48.134.120:10181/satellite-track/)
#### [GitHub Pages】](https://jiangteng2019.github.io/satellite-track/)
#### [satellite-track】](http://120.48.134.120:10181/satellite-track/)
## Run
```sh
# Clone project
git clone https://github.com/jiangteng2019/satellite-track.git
# enter the project root directory
cd satellite-track
# Install dependencies
npm install
# startup project
npm run dev
# Compile and package
npm run build
```
The compiled file cannot be opened using the browser's file protocol. You need a static resource server, such as nginx.
## Tips
1. The access speed of github pages is slow, and the TLE data and cesium data are large. Please wait patiently for the resources to load;

View File

@ -6,9 +6,23 @@
satellite-track 是一款追踪卫星轨道的程序使用cesium、vue、satelliteJS开发。支持24小时之内(性能考虑)的卫星和卫星星座轨道显示同时也支持自定义的卫星轨道数据TLE加载。数据来源于celestrak。
## 预览
#### [satellite-track】](https://jiangteng2019.github.io/satellite-track/)
#### [备用地址】](http://120.48.134.120:10181/satellite-track/)
#### [GitHub Pages】](https://jiangteng2019.github.io/satellite-track/)
#### [satellite-track】](http://120.48.134.120:10181/satellite-track/)
## 运行
```sh
# 克隆项目工程
git clone https://github.com/jiangteng2019/satellite-track.git
# 进入项目根目录
cd satellite-track
# 安装依赖
npm install
# 启动项目
npm run dev
# 编译打包
npm run build
```
编译好的文件无法使用浏览器的file协议打开你需要一个静态资源服务器如 nginx。
## 注意
1. github pages 访问速度慢TLE数据与cesium数据较大请耐心等待资源加载;