Code Monkey home page Code Monkey logo

gpsterminalemulator's Introduction

GpsTerminalEmulator

基于部标协议的终端模拟器的服务端

特色功能:根据基准点、速度重新插值计算出更为真实的设备定位数据,最大化数据模拟的真实性。

前端代码详见TerminalEmulatorWeb

部署使用

为了方便大家使用,已提供 docker 镜像,

docker 安装请参照官方文档

  • touch docker-compose.yml

  • 复制docker-compose.yml内容至刚才新建的docker-compose.yml文件中

  • 执行docker-compose up -d

  • 浏览器打开localhost:4000

二次开发

开发环境

  • net5.0

  • PostgreSql

  • 部标 Jt808 服务端(非必须)

生成迁移

  • 为了快速开发,该项目的 808 协议解析器使用的是我自己的库,因此请先添加我私人的 nuget 服务http://nuget.yedajiang44.com/v3/index.json或直接移除Jt808TerminalEmulator.Core项目里的GpsPlatform.Jt808Protocol包,并使用你自己的协议库

  • 按需更改 appsettings.json 如数据库连接

  • 由于项目使用 codefirst,因此无需手动创建数据库,但是在运行项目前需要执行迁移,可以执行migration.sh脚本,也可以直接执行迁移命令

运行项目

直接运行Jt808TerminalEmulator.Api项目,直到控制台输出如下内容

 _   _          _   _                   _   _      ___     ___     ___    _
| | | |   ___  | | | |   ___           | | | |_   ( _ )   / _ \   ( _ )  | |
| |_| |  / _ \ | | | |  / _ \       _  | | | __|  / _ \  | | | |  / _ \  | |
|  _  | |  __/ | | | | | (_) |  _  | |_| | | |_  | (_) | | |_| | | (_) | |_|
|_| |_|  \___| |_| |_|  \___/  ( )  \___/   \__|  \___/   \___/   \___/  (_)
                               |/

友情提醒及免责声明

为避免该项目被投机者利用,特做此声明:违反以下提醒造成的一切违法行为由使用者个人或单位自行承担,与作者无关

  • 本项目仅适用于本地开发或内部测试时使用

  • 请勿恶意并发进攻他人服务器

  • 请勿为了运营商考核而使用本工具

如果同意以上声明方可使用该项目

已知问题

  • efcore 部分使用跟踪查询导致查询速度较慢

  • 定位中无方向数据

  • 模拟时未进行注册鉴权

Rodmap

  • 修复已知问题

  • 添加压测功能

License

Apache License 2.0

gpsterminalemulator's People

Contributors

yedajiang44 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.