Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/QLeelulu/ohlala

觅链: 一个具有社会化媒体属性的链接分享与评论平台。类似Reddit
https://github.com/QLeelulu/ohlala

Last synced: about 2 months ago
JSON representation

觅链: 一个具有社会化媒体属性的链接分享与评论平台。类似Reddit

Awesome Lists containing this project

README

        

## 这是哪里 ##

这里是 [觅链](http://milnk.com) 的源码。

### 觅链[milnk] 是什么 ###

[觅链](http://milnk.com)是一个具有社交媒体属性的链接分享与评论平台。

### 用了哪些技术 ###

###### 后端 ######

- [golang](http://golang.org/)
- [goku](https://github.com/QLeelulu/goku)
- mysql
- [redis](http://redis.io/)

###### 前端 ######

- jquery
- [seajs](http://seajs.org/)
- [bootstrap](http://twitter.github.com/bootstrap/)

### 怎样运行 ###

1、获取代码

```bash
$ git clone git://github.com/QLeelulu/ohlala.git $GOPATH/src/github.com/QLeelulu/ohlala
```

安装依赖包

```bash
go get -u github.com/QLeelulu/goku
go get -u github.com/simonz05/godis/redis
go get -u github.com/ziutek/mymysql/godrv
go get -u github.com/russross/blackfriday
go get -u code.google.com/p/goauth2/oauth
go get code.google.com/p/goauth2/oauth
```

2、启动MySQL和Redis服务。

3、建MySQL数据库: [db/link.sql](https://github.com/QLeelulu/ohlala/blob/master/golink/db/link.sql)

4、修改 `golink/config.go` 里面与MySQL和Redis相关的配置,然后执行:

```bash
$cd $GOPATH/src/github.com/QLeelulu/ohlala
$go run app.go
```

### 项目结构说明 ###

```bash
.
├── app.go web服务启动文件
├── golink
│   ├── config.go 配置文件
│   ├── controllers
│   │   ├── admin 管理后台
│   │   │   ├── base.go
│   │   │   ├── comment.go
│   │   │   ├── index.go
│   │   │   ├── link.go
│   │   │   ├── topic.go
│   │   │   └── user.go
│   │   ├── api.go
│   │   ├── base.go 一些controller相关的公用函数
│   │   ├── comment.go
│   │   ├── discover.go
│   │   ├── home.go
│   │   ├── host.go
│   │   ├── invite.go
│   │   ├── link.go
│   │   ├── topic.go
│   │   ├── user.go
│   │   ├── user_reg_login.go 用户登陆、注册
│   │   ├── user_setting.go 用户设置
│   │   └── vote.go
│   ├── db
│   │   └── link.sql 数据脚本
│   ├── filters Controller/Action Filter
│   │   ├── ajax.go
│   │   └── require_login.go
│   ├── forms Form表单验证
│   │   └── forms.go
│   ├── global_viewdata.go
│   ├── middlewares 中间件,对所有请求做统一处理
│   │   ├── confess.go 前期推广不容易啊!
│   │   └── util-middleware.go 例如判断用户是否登陆等一些常用中间件
│   ├── models
│   │   ├── admin_comment.go
│   │   ├── admin_link.go
│   │   ├── base.go
│   │   ├── comment.go
│   │   ├── comment_for_user.go 用户收到的评论
│   │   ├── comment_sort.go 查看Link时评论列表排序
│   │   ├── invite.go
│   │   ├── link.go
│   │   ├── link_for_home.go
│   │   ├── link_for_host.go
│   │   ├── link_for_topic.go
│   │   ├── link_for_user.go
│   │   ├── link_support_record.go
│   │   ├── remind.go 新评论、关注提醒
│   │   ├── remind_test.go
│   │   ├── topic.go
│   │   ├── user.go
│   │   ├── user_follow.go
│   │   └── vote.go
│   ├── route.go Url路由配置
│   ├── static
│   │   ├── css
│   │   ├── ico
│   │   ├── img
│   │   └── js
│   │   ├── comment.js
│   │   ├── invite.js
│   │   ├── main.js
│   │   ├── seajs-lib Seajs模块
│   │   ├── topic.js
│   │   ├── user-page.js
│   │   └── util.js
│   ├── utils 公用帮助类
│   │   ├── algorithm.go
│   │   ├── genetic_key.go
│   │   ├── sina_oauth.go
│   │   ├── sina_weibo.go
│   │   ├── utils.go
│   │   └── utils_test.go
│   └── views 视图(模板)
│   ├── _golink_admin 管理后台
│   └── shared
│      └── layout.html 主布局模板
├── golink.conf.sample JSON配置文件
├── push-to-topic-and-home.go 推送到主题和首页的后台任务
├── push-to-user.go 把用户关注的内容推送给用户,后台任务
└── send-invite-email.go 发送邀请注册Email,后台任务
```

## 贡献者们 ##

下面的信息由 git-summary 于 2013-02-02 日生成.

project: ohlala
commits: 441
active : 96 days
files : 173
authors:
277 QLeelulu 62.8%
128 zengshmin 29.0%
16 jjyy 3.6%
21 Hippasus 4.5%

完整的贡献者列表[请看这里](https://github.com/QLeelulu/ohlala/graphs/contributors).

## License ##