Code Monkey home page Code Monkey logo

torna's Introduction

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.

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 registry.cn-hangzhou.aliyuncs.com/tanghc/torna:latest

Create an empty file application.properties to store config:

mkdir /etc/torna && touch /etc/torna/application.properties

vim /etc/torna/application.properties

entry config below:

# server port
server.port=7700

# MySQL address
mysql.host=<mysql_ip>:3306
# Database name
mysql.schema=torna
# MySQL account, make sure can run DDL
mysql.username=<username>
mysql.password=<password>

Run docker:

docker run --name torna --restart=always \
  -p 7700:7700 \
  -e JAVA_OPTS="-server -Xms512m -Xmx512m" \
  -v /etc/torna/application.properties:/torna/config/application.properties \
  -d registry.cn-hangzhou.aliyuncs.com/tanghc/torna:latest

Browser 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.

torna's People

Contributors

thc75 avatar aurorxa avatar ximeng0918 avatar chenqi146 avatar shalousun avatar bugdesigner1 avatar f00lish avatar lvlivejp avatar lt-monster avatar readazusa avatar yyyyyzc avatar xanderxie avatar

Stargazers

 avatar  avatar fawaikuangtuzhangfei avatar Xiang Zheng avatar  avatar minicloudsky avatar Frank Gong avatar duckflew avatar Ty avatar 吴家荣 avatar  avatar   盛鼎科技 avatar 杜仲 avatar  avatar Abel avatar  avatar  avatar 670626283@qq.com avatar Scruel Tao avatar

Watchers

 avatar

torna's Issues

链接数据库失败

  docker run --name torna --restart=always \
    -p 7700:7700 \
    -e JAVA_OPTS="-server -Xms1024m -Xmx2048m" \
    -v /home/bgyfw/torna/application.properties:/torna/config/application.properties \
    -d registry.cn-hangzhou.aliyuncs.com/tanghc/torna:1.26.0  

image

    # Server port
    server.port=7700
    
    # MySQL host
    mysql.host=10.10.171.49:3306
    # Schema name
    mysql.schema=torna
    # Make sure the account can run CREATE/ALTER SQL
    mysql.username=root
    mysql.password=root


   按照文档配置数据库 但是数据库就是连不上,

image

  直接下载源码到idea 去跑,能启动,但是用docker 部署就不行

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.