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.
- ✅ Grammar checking for Markdown files
- 📂 Upload Markdown files
- 🔍 Retrieve Markdown files as HTML
- 📜 List all uploaded files
- 🛠 Go 1.24.1 or higher
- 🌐 cURL (for API requests)
sudo pacman -S go
sudo pacman -S curl
git clone https://github.com/Abhishek2010dev/MarkFlow.git
cd MarkFlow
go mod tidy
go run main.go
POST /check-grammer
- Request:
- 📎 Form-data:
file
(Markdown file)
- 📎 Form-data:
- 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
POST /notes
- Request:
- 📎 Form-data:
file
(Markdown file)
- 📎 Form-data:
- Response: ✅ Confirmation of file upload
cURL Example:
curl -X POST http://localhost:8080/notes \
-F "file=@test.md" \
-H "Content-Type: multipart/form-data"
GET /notes/{filename}
- Response: 🖥 HTML version of the Markdown file
cURL Example:
curl http://localhost:8080/notes/test.md
GET /notes
- Response: 📄 JSON object listing uploaded files
cURL Example:
curl http://localhost:8080/notes
MarkFlow uses the following dependencies:
github.com/gin-gonic/gin
- ⚡ HTTP web frameworkgithub.com/yuin/goldmark
- 📝 Markdown parsergithub.com/goccy/go-json
- 🚀 High-performance JSON library
For more inspiration on building a Markdown note-taking app, check out this guide.
This project is licensed under the MIT License.