nibazshab / webnote

Web Notepad / 网页记事本

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

webnote

网页记事本,用于临时记录一些内容

使用说明

默认监听 10003 端口,数据储存在 webnote 可执行文件同级目录的 data.db 文件中。注:反向代理时不要代理到域名子目录

  1. 编译源代码
  2. 运行程序 ./webnote

编译步骤

编译依赖:gcc,go

git clone https://github.com/nibazshab/webnote.git
cd webnote
go get ./...
CGO_ENABLED=1 go build -ldflags="-s -w"

测试平台:Linux amd64

API

POST /{uid}

请求:application/x-www-form-urlencoded,无返回

body:t 文本内容

GET /{uid}

返回该链接所对应的文本内容

PLAN-B

  • 解决 favicon.ico 被重定向的问题
  • 变更相对路径为绝对路径

开源地址

https://github.com/nibazshab/webnote

Powered by https://github.com/pereorga/minimalist-web-notepad

许可证

MIT © ZShab Niba

About

Web Notepad / 网页记事本

License:MIT License


Languages

Language:Go 70.3%Language:HTML 29.7%