Coder Social home page Coder Social logo

zofuthan / ohlala Goto Github PK

View Code? Open in Web Editor NEW

This project forked from qleelulu/ohlala

0.0 1.0 0.0 2.48 MB

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

Home Page: http://milnk.com

Go 52.52% CSS 2.58% JavaScript 31.11% HTML 13.79%

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

qleelulu avatar zengshmin avatar hippasus 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.