Giter Club home page Giter Club logo

ohlala's Introduction

这是哪里

这里是 觅链 的源码。

觅链[milnk] 是什么

觅链是一个具有社交媒体属性的链接分享与评论平台。

用了哪些技术

后端
前端

怎样运行

1、获取代码

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

安装依赖包

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

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

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

项目结构说明

.
├── 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%

完整的贡献者列表请看这里.

License

ohlala's People

Contributors

hippasus avatar qleelulu avatar zengshmin avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

ohlala's Issues

增加widget

用户可以在他的博客或者站点上放置milnk的挂件,显示他在milnk上分享的链接。

汇总改进

0、对图片、视频url的识别,在milnk页面显示图片/视频缩略图
1、link的搜索功能
2、我关注的话题
3、我关注的话题可以像reddit一样,在页面顶行显示,方便点击。
3、收藏夹(收藏link)
4、喜欢/不喜欢 的link,也就是顶/踩的link
5、等link数量多了以后,把“热议”、“得分”这两个页签的按时间段汇总的数据放出来

回复评论需要提醒

回复评论时,需要提醒被回复的评论的用户。
用户“收到的评论”里面可以查看这些评论。

收到的评论里面,链接被评论和评论被回复需要分开显示??

改进2013-02-02

1、链接列表显示链接所在网站的图标;
2、话题添加备注及开放编辑;
3、查看某话题界面提供直接给该话题发布link的按钮;
4、争议排序规则修改

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.