Post: String author, Date time, String text
Comment: String author, Date time, String text
GET /api/version -> version
GET /api/ -> num_posts
GET /api/<nth>/ -> Post
GET /api/<nth>/views -> num_views
GET /api/<nth>/comments/ -> [Comment
POST /api/<nth>/comment/<author> body=<text> -> new_len
GET /api/<nth>/comments/len -> num_comments
DELETE /api/pop/ (auth) -> new_len
POST /api/<author>/ body=<text> (auth) -> new_len
数据库不使用,采用每次启动读取数据每次退出序列化数据的方式 🌚
WebSocket 在文章被回复的时候发送文章索引。
SIGQUIT: output data and exit
SIGUSR1: output data
SIGUSR2: clear anti-spam log
crystal build -s -p --release src/times.cr
./times dolphins &
timelinerd <password>
- Fork it
- Create your feature branch (git checkout -b my-new-feature)
- Commit your changes (git commit -am 'Add some feature')
- Push to the branch (git push origin my-new-feature)
- Create a new Pull Request
- [duangsuse] duangsuse - creator, maintainer