Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/icemokacat/bruno-viewer
viewer for markdown docs in bru file
https://github.com/icemokacat/bruno-viewer
bruno markdown springboot
Last synced: 14 days ago
JSON representation
viewer for markdown docs in bru file
- Host: GitHub
- URL: https://github.com/icemokacat/bruno-viewer
- Owner: icemokacat
- License: other
- Created: 2024-08-23T03:37:57.000Z (3 months ago)
- Default Branch: release
- Last Pushed: 2024-09-13T04:36:16.000Z (2 months ago)
- Last Synced: 2024-10-10T11:20:26.815Z (about 1 month ago)
- Topics: bruno, markdown, springboot
- Language: Java
- Homepage:
- Size: 127 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
- Security: SECURITY.md
Awesome Lists containing this project
README
# π¦ Bruno API Client Docs Viewer
[![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://opensource.org/licenses/Apache-2.0)
무λ£λ‘ μ¬μ©ν μ μλ [bruno api client](https://www.usebruno.com/) μμ docs μ λ§ν¬λ€μ΄μ λ³Ό μ μλ νλ‘κ·Έλ¨μ λλ€.
[![Report bug][report-bug-shield]][report-bug-url]
# π Table of Contents
- [About the Project](#about-the-project)
- [Features](#features)
- [Technologies](#technologies)
- [Getting Started](#getting-started)
- [Prerequisites](#prerequisites)
- [Installation](#installation)
- [Configuration](#configuration)
- [Usage](#usage)
- [1. Page View λ°©μ (thymeleaf view lendering)](#1-page-view-λ°©μ-thymeleaf-view-lendering)
- [2. HTTP API νΈμΆ λ°©μ](#2-http-api-νΈμΆ-λ°©μ)
- [3. bru collection λ΄ λλ ν 리 λ° bru νμΌ λ¦¬μ€νΈ νμΈ](#3-bru-collection-λ΄-λλ ν 리-λ°-bru-νμΌ-리μ€νΈ-νμΈ)
- [Acknowledgement](#acknowledgement)
- [License](#license)# π‘ About the Project
- λΈλ£¨λ Έ Api Client μμ μ 곡νλ Docs λ§ λ³λλ‘ κ΄λ¦¬νκΈ° μν΄ λ§λ€μ΄μ§ νλ‘μ νΈμ λλ€.
- λ¬Έμλ§ λ³λλ‘ κ΄λ¦¬νλ©΄μ, Front-end μμ custom νκ² λμμΈνμ¬ λ³΄κΈ°μ’κ² κ³΅μ νκΈ° μν΄ λ§λ€μμ΅λλ€.
- .bru νμΌμ μ½μ΄μ docs {} λΆλΆμ markdown μ μ½μ΄μ 보μ¬μ€λλ€.## π Features
![Java](https://img.shields.io/badge/java-%23ED8B00.svg?style=for-the-badge&logo=openjdk&logoColor=white)![Spring](https://img.shields.io/badge/spring-%236DB33F.svg?style=for-the-badge&logo=spring&logoColor=white)![Thymeleaf](https://img.shields.io/badge/Thymeleaf-%23005C0F.svg?style=for-the-badge&logo=Thymeleaf&logoColor=white)
## π¨ Technologies
- [Gradle](https://gradle.org/) 8.8
- [SpringBoot](https://spring.io/projects/spring-boot) 3.3.3
- [Thymeleaf](https://www.thymeleaf.org/) 3.3.3
- [commonmark](https://commonmark.org/) 0.22.0# β‘ Getting Started
## Prerequisites
- Java 17.0.10+11-LTS-240
## Installation
Repository ν΄λ‘
```bash
git clone https://github.com/icemokacat/bruno-viewer.git
```## Configuration
- `application-dev.yml μ μ°Έκ³ νμ¬ application-local.yml μ λ§λ€μ΄μ μ¬μ©νμΈμ.`
- Active profiles local λ‘ μ€μ νμ¬ μ€ννμΈμ.```yml
server:
port: 7001bruno:
# .bru νμΌμ΄ μλ Collectionμ ν΄λ κ²½λ‘ νΉμ Collection μ΄ λͺ¨μ¬ μλ λ£¨νΈ path λ₯Ό μ€μ νμΈμ
root-path: C:\work\bruno-project\```
# Usage
Springboot μ€ν or jar build ν localhost:{port} μ€ν
bru νμΌμ κ²½λ‘κ° μλμ κ°μλ
> {root-path}{μλκ²½λ‘}### 1. Page View λ°©μ (thymeleaf view lendering)
http://localhost:{port}/page/bruno/{μλκ²½λ‘} λ₯Ό νΈμΆνμ¬ .bru λ΄ markdown μ λ³Ό μ μμ΅λλ€.
![κ²°κ³Όμμνλ©΄](https://github.com/user-attachments/assets/945e9364-62a7-4c61-a64f-655897f802f3)
π‘ μμλ‘ μ¬μ©ν md λ¬Έμλ μλμ λ§ν¬μ λλ€.
> https://gist.github.com/azagniotov/a4b16faf0febd12efbc6c3d7370383a6#file-beautiful-rest-api-docs-in-markdown-md
### 2. HTTP API νΈμΆ λ°©μ
http://localhost:{port}/api/bruno/{μλκ²½λ‘} λ₯Ό νΈμΆνλ©΄ .bru λ΄ markdown μ
html codeλ‘ parsing ν λ¬Έμμ΄ λ°μ΄ν°λ₯Ό λ°ν ν©λλ€.
![κ²°κ³Όμμνλ©΄](https://github.com/user-attachments/assets/d1dc0aae-40a0-40c0-886c-38ea071bc6f3)
π‘ μμλ‘ μ¬μ©ν md λ¬Έμλ μλμ λ§ν¬μ λλ€.
> https://gist.github.com/azagniotov/a4b16faf0febd12efbc6c3d7370383a6#file-beautiful-rest-api-docs-in-markdown-md
### 3. bru collection λ΄ λλ ν 리 λ° bru νμΌ λ¦¬μ€νΈ νμΈ
http://localhost:{port}/api/bruno-path
- Method : GET
- Parameter : dir (ν΄λλͺ )
- Response OK Data
```json
{
"httpStatus": "OK",
"message": "OK",
"data": [
{
"isBru": false,
"directoryPath": "myapp/environments",
"directoryName": "environments"
},
{
"isBru": true,
"directoryPath": "myapp/login.bru",
"directoryName": "login.bru"
}
]
}
```# π Acknowledgement
- [Markdown to html (commonmark)](https://mvnrepository.com/artifact/org.commonmark/commonmark)
- [SpringμΌλ‘ markdown view λ§λ€κΈ°](https://devocean.sk.com/blog/techBoardDetail.do?ID=163499)
- [Github Markdown CSS](https://github.com/sindresorhus/github-markdown-css) by [sindresorhus](https://github.com/sindresorhus)# β¨ License
Apache License 2.0λΌμ΄μΌμ€μ λν μ 보λ [`LICENSE`](/LICENSE)μ μμ΅λλ€.
[report-bug-shield]: https://img.shields.io/badge/-%F0%9F%90%9E%20report%20bug-F5A9A9?style=for-the-badge
[report-bug-url]: https://github.com/icemokacat/bruno-viewer/issues