Coder Social home page Coder Social logo

hitokoto-go's Introduction

Hitokoto-Go

一言Hitokoto(GoLang)

Version 1.02

Blog:

《一言(Hitokoto-Go)》- SycBlog

开源协议

GNU General Public License v3.0

运行环境

  • GoLang 1.9+
  • Mysql
  • Redis

Pkg

go get -u github.com/go-sql-driver/mysql
go get github.com/garyburd/redigo/redis

Mysql:

导入 ‘hitokoto.sql’ (附10条测试数据)

修改 main.go 中的 Mysql_Config

mysql_host = "127.0.0.1" 
mysql_port = "3306"      
mysql_user = "root"
mysql_pass = ""
mysql_name = "hitokoto"

Redis:

修改 main.go 中的 Redis_Config

redis_host = "127.0.0.1"
redis_port = "6379"
redis_pass = ""
redis_dbns = 0  //存储库
redis_pool = 10 //连接池最大数量

编译

cd ./src/
go build ./

运行

测试: ./hitokoto
后台: nohup ./hitokoto &

大功告成

访问 127.0.0.1:8080 显示如下:

我相信十年后的八月,我们还能再相遇。

hitokoto-go's People

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.