https://github.com/georgijgrigoriev/save-to-md
Small single binary app to save input from web input to md file.
https://github.com/georgijgrigoriev/save-to-md
fast-note go md selfhost
Last synced: about 1 month ago
JSON representation
Small single binary app to save input from web input to md file.
- Host: GitHub
- URL: https://github.com/georgijgrigoriev/save-to-md
- Owner: GeorgijGrigoriev
- Created: 2025-08-22T07:46:38.000Z (10 months ago)
- Default Branch: main
- Last Pushed: 2025-08-22T16:15:46.000Z (10 months ago)
- Last Synced: 2025-08-22T18:54:51.484Z (10 months ago)
- Topics: fast-note, go, md, selfhost
- Language: HTML
- Homepage:
- Size: 10.7 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Markdown Editor Application
This is a web application for creating and managing markdown files through a simple web interface.
## Features
- Creating and editing markdown files
- Viewing the content of saved files in HTML format
- File management (viewing, deleting)
## Installation and Running
### Requirements
- Go 1.19 or higher
- Dependencies will be automatically downloaded on run
### Running
```bash
# Clone the repository
git clone https://github.com/GeorgijGrigoriev/save-to-md
cd markdown-app
# Start the server
go run cmd/server/main.go -listen=:8080 -savePath=/path/to/directory/to/save
```
Example startup:
```bash
go run cmd/server/main.go -listen=:8080 -savePath=/tmp/mdfiles
```
## Usage
1. Open your browser and go to `http://localhost:8080`
2. Enter the filename and content in the editor
3. Click "Save" to save the file
4. Go to the files page (`/files`) to view the list of files
5. Click on a filename to view its content in HTML format
6. Use the "Delete" button to remove files
## API Endpoints
- `GET /` - Main editor page
- `GET /files` - Files list page
- `POST /save` - Save a markdown file
- `GET /view/:filename` - View a specific file
- `DELETE /delete/:filename` - Delete a file
- `GET /api/files` - Get the list of files via API
- `GET /api/view/:filename` - Get the content of a saved file
## Project Structure
```
markdown-app/
├── cmd/
│ └── server/ # Entry point of the server
├── internal/
│ ├── api/ # API logic and handlers
└────── web/ # Web templates and static files
```