1 Star 0 Fork 558

root / torna

forked from tanghc / torna 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
readme.md 4.07 KB
一键复制 编辑 原始数据 按行查看 历史
tanghc 提交于 2022-07-07 21:01 . 1.15.7

Torna

English | 简体中文

Enterprise API document solution, the goal is to make the document management become more convenient, fast. Torna takes a collaborative approach to managing and maintaining project API documents, incorporating different forms of documents into a unified maintenance approach.

Torna makes up for the shortcomings of traditional document generation tools such as Swagger by enriching and enhancing some useful functionality while maintaining the original functionality.

Current version

Module Version
sdk-java maven
swagger-plugin maven
smart-doc maven

Usage

Method 1:download zip

Go Release page ,download latest version,unzip

Import database,execute mysql.sql

Openapplication.properties,modify database config

Runsh startup.sh to startup.(Windows run startup.bat)

Visit:http://ip:7700

  • Login account:

username:admin,password:123456

  • About upgrade

Override torna.jar file and dist folder,and startup.

Method 2: run in docker

Import database,run mysql.sql

Download image

docker pull tanghc2020/torna:latest

Run docker:

docker run --name torna --restart=always \
  -p 7700:7700 \
  -e JAVA_OPTS="-Xms256m -Xmx256m" \
  -e MYSQL_HOST="172.16.60.102:3306" \
  -e MYSQL_SCHEMA="torna" \
  -e MYSQL_USERNAME="root" \
  -e MYSQL_PASSWORD="root" \
  -d tanghc2020/torna:1.15.7

Need modify:

  • MYSQL_HOST:MySQL host
  • MYSQL_SCHEMA:database name
  • MYSQL_USERNAME:MySQL username,make sure the account can run CREATE/ALTER sql.
  • MYSQL_PASSWORD:MySQL password

Visit:http://ip:7700

docker-compose deploy

docker-compose deploy

kubernetes deploy

kubernetes deploy

Recommended combination

smart-doc + Torna

If you use Java,we recommended you use smart-doc + Torna

smart-doc + Torna form an industry-leading document generation and management solution, using smart-Doc non-intrusive Java source code and annotation extraction to generate API documents, automatically push documents to Torna enterprise interface document management platform. Through this combination you can achieve: only need to write Java annotation can push the API information to the Torna platform, so as to achieve interface preview, interface debugging.

Push content:API name/author/path param/header/body/response/dict/error code

If you use other language, you can use the form page to edit the above content, and then you can also preview and debug the API.

Development and deployment

See:Development document

Other resource

Changelog

changelog

Page preview

API management

Edit API

Preview

Debug API

Acknowledgements

Thanks to JetBrains SoftWare for providing free Open Source license for this open source project.

Java
1
https://gitee.com/wjbjwang/torna.git
git@gitee.com:wjbjwang/torna.git
wjbjwang
torna
torna
master

搜索帮助