Skip to content

Latest commit

 

History

20 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MarkFlow 🚀

MarkFlow is a simple and efficient Markdown file management system built using Go and Gin. It provides grammar checking, file uploads, and the ability to retrieve Markdown files as HTML.

✨ Features

  • ✅ Grammar checking for Markdown files
  • 📂 Upload Markdown files
  • 🔍 Retrieve Markdown files as HTML
  • 📜 List all uploaded files

📥 Installation

Prerequisites

  • 🛠 Go 1.24.1 or higher
  • 🌐 cURL (for API requests)

Install Go using Pacman (Arch Linux)

sudo pacman -S go

Install cURL

sudo pacman -S curl

Clone the Repository

git clone https://github.com/Abhishek2010dev/MarkFlow.git
cd MarkFlow

Install Dependencies

go mod tidy

Run the Application

go run main.go

📡 API Endpoints

📝 Check Grammar

POST /check-grammer

  • Request:
    • 📎 Form-data: file (Markdown file)
  • Response: JSON object with grammar suggestions

cURL Example:

curl -X POST http://localhost:8080/check-grammer \
  -F "file=@test.md" \
  -H "Content-Type: multipart/form-data" | jq

📤 Upload Markdown File

POST /notes

  • Request:
    • 📎 Form-data: file (Markdown file)
  • Response: ✅ Confirmation of file upload

cURL Example:

curl -X POST http://localhost:8080/notes \
  -F "file=@test.md" \
  -H "Content-Type: multipart/form-data"

📄 Retrieve Markdown as HTML

GET /notes/{filename}

  • Response: 🖥 HTML version of the Markdown file

cURL Example:

curl http://localhost:8080/notes/test.md

📜 List All Files

GET /notes

  • Response: 📄 JSON object listing uploaded files

cURL Example:

curl http://localhost:8080/notes

📦 Dependencies

MarkFlow uses the following dependencies:

  • github.com/gin-gonic/gin - ⚡ HTTP web framework
  • github.com/yuin/goldmark - 📝 Markdown parser
  • github.com/goccy/go-json - 🚀 High-performance JSON library

🔗 Reference

For more inspiration on building a Markdown note-taking app, check out this guide.

📜 License

This project is licensed under the MIT License.

👨‍💻 Author

Abhishek2010dev

About

MarkFlow is a simple and efficient Markdown file management system built using Go and Gin. It provides grammar checking, file uploads, and the ability to retrieve Markdown files as HTML.

Topics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages