Code Monkey home page Code Monkey logo

goblog's Introduction

#GoBlog

基于Go语言和beego框架的简易博客系统

开发中,数据表结构随时可能调整...

演示地址: http://www.ptapp.cn/

我的博客: http://www.lisijie.org/

##编译安装说明:

设置GOPATH(安装目录)

$ export GOPATH=/path/to/goblog
$ cd /path/to/goblog

获取源代码,下载完成后会自动编译为goblog可执行文件

$ go get github.com/lisijie/goblog

修改数据库配置

$ cd src
$ vim github.com/lisijie/goblog/conf/app.conf

appname = goblog
httpport = 8080
runmode = dev
dbhost = localhost 
dbport = 3306
dbuser = root
dbpassword = 123456
dbname = goblog
dbprefix = tb_

导入MySQL

$ mysql -u username -p -D goblog < goblog.sql

运行

$ ./goblog
或
$ nohup ./goblog 2>&1 > goblog.log &
设为后台运行

访问:

http://localhost:8080

后台地址:

http://localhost:8080/admin

帐号:admin 密码:admin888

goblog's People

Contributors

lisijie avatar

Watchers

 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.