This is a creation in Article, where the information may have evolved or changed.
Introduced
Gonews is an go+vue
implementation-based Golang Daily news browsing and retrieval platform
- Project Address: Github
- On-line Demo:gonews
- Data Source: GOCN Daily News
Project
Deployment
git clone https://github.com/gocn/news /data/news
go get -u github.com/mikemintang/gonews
nohup gonews -a api -p 8017 > /data/log/gonews.log 2>&1 &
cd $GOPATH/src/github.com/mikemintang/gonews/webnpm installnpm run build
server { listen 80; server_name gonews.idoubi.cc; index index.html index.htm index.php; root /data/go/src/mikemintang/gonews/web; location /api { rewrite ^.+api/?(.*)$ /$1 break; proxy_pass http://127.0.0.1:8017; }}
#!/bin/shcd /data/newsgit pull origin masternohup gonews -d /data/news/ > /data/log/gonews.log 2>&1
crontab -e*/10 * * * * /bin/sh /data/shell/cache_news.sh
The technology used
Golang Bag
- 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
NPM Package
- Vue
- Vuex
- Vue-router
- Axios
- Moment
- Mockjs
Welcome to submit Pull Request