基于go+vue实现的golang每日新闻数据浏览与检索平台(推荐)

2018-09-21 17:03

阅读:660

  gonews是基于 go+vue 实现的golang每日新闻浏览与检索平台

  项目地址:Github

  线上Demo:GoNews

  数据来源:GoCN每日新闻

  项目截图

  

  部署

  获取新闻数据

   git clone

  获取源码

  解析数据

   nohup gonews -d /data/news > /data/log/gonews.log 2>&1

  启动Api

   nohup gonews -a api -p 8017 > /data/log/gonews.log 2>&1 &

  前端部署

  Nginx配置

  Shell脚本

   #!/bin/sh cd /data/news git pull origin master nohup gonews -d /data/news/ > /data/log/gonews.log 2>&1

  定时任务

   crontab -e */10 * * * * /bin/sh /data/shell/cache_news.sh

  用到的技术

  golang包

   github.com/go-redis/redis encoding/json flag net/http net/url strconv sync crypto/md5 fmt io io/ioutil net/url os path/filepath regexp strconv strings time

  总结

  以上所述是小编给大家介绍的基于go+vue实现的golang每日新闻数据浏览与检索平台,希望对大家有所帮助,如果大家有任何疑问请给我留言,小编会及时回复大家的。在此也非常感谢大家对脚本之家网站的支持!


评论


亲,登录后才可以留言!