Git Product home page Git Product logo

studygolang's Introduction

studygolang

Golang中文社区 | Go语言学习园地 源码

网站上线时间:2013-03-15 14:38:09

目前只开发了主要功能,还有不少功能在不断开发中。欢迎有兴趣的gopher们参与进来,一起构建一个完善的 Golang 中文社区,Go语言爱好者的学习家园。

#目前在正开发或需要开发的功能

  1. 小贴士
  2. 收藏
  3. 关注
  4. 用第三方账号登录
  5. 绑定github后显示其代码
  6. 同步到微博?
  7. 博文评论 @用户 待完善

本地搭建一个 Golang 社区

1、下载 studygolang 代码

git clone https://github.com/studygolang/studygolang

2、下载安装依赖库(如果依赖库下载不下来可以联系我)

cd studygolang/websites/code/thirdparty
// windows 下执行
getpkg.bat
// linux/mac 下执行
sh getpkg

3、编译并运行 studygolang

先编译

// 接着上一步
cd ../studygolang/
// windows 下执行
install.bat
// linux/mac 下执行
sh install

这样便编译好了 studygolang,下面运行 studygolang。(运行前可以根据需要修改 config/config.json.example 配置,当然首先得改名为 config.json)

// windows 下执行
start.bat
// linux/mac 下执行
sh start

一切顺利的话,studygolang 应该就启动了。

4、浏览器中查看

在浏览器中输入:http://127.0.0.1:8080

应该就能看到了。

5、建立数据库

运行起来了,但没有建数据库。源码中有一个 databases 文件夹,里面有建表和初始化的sql语句。之前这些sql之前,在mysql数据库中建立一个数据库:studygolang,之后执行这些sql语句。

根据你的数据库设置,修改上面提到的 config/config.json 对应的配置,重新启动 studygolang.(通过restart脚本重新启动)

studygolang's People

Contributors

polaris1119 avatar feixionglee avatar lewgun avatar zhima1234 avatar andyhang avatar

Watchers

echo 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.