Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
/ osf Public
forked from wzlee/osf

OSF是一个开放、自由、分享的内容社区类网站原型,实现多用户,内容的发布、评论、喜欢,消息传递,Feed流,标签分类等内容社区类网站通用功能。你可以用OSF构建一个单纯的社交网站,也可以加入标签成为一个兴趣社区,甚至两者皆可,这一切OSF都已为你提供。

License

Notifications You must be signed in to change notification settings

chenty/osf

Repository files navigation

OSF

Build Status

OSF是一个开放、自由、分享的内容社区类网站原型。你会发现目前绝大多数的社交类网站、内容分享类、社区类、兴趣垂直类网站都有共同的特性,包括多用户,内容的发布、评论、喜欢,消息传递,Feed流,标签分类等等。打造OSF的初衷就是为了实现这些通用的模块,构建一个集合以上特点的内容社区类网站的原型。你可以用OSF构建一个单纯的社交网站,也可以加入标签成为一个兴趣社区,甚至两者皆可,这一切OSF都已为你提供。

welcome

主要功能

  • 邮箱注册激活验证
  • 多用户、用户间互相关注
  • 标签系统
  • Feed流
    • 关注用户Feed
    • 关注标签Feed
  • 说说、日志、相册
  • 评论、回复
  • 通知系统
  • 个人信息设置、账户安全
  • 上传图片云存储

Demo

此项目的Demo版演示已经部署在Coding.net http://osf.coding.io/welcome

演示用户:

邮箱 密码
osfdemo1@163.com demo123456
osfdemo2@163.com demo123456

注意:如果自行注册登录,请使用真实邮箱地址,osf会为新注册用户发送激活链接

UI

Sketch文件下载:osf_sketch

explore

技术选型

OSF选择Spring MVC作为后端基础框架,实现RESTFull url,为实现尽可能的前后端分离,除首屏数据渲染外均通过Ajax+json形式更新前端,url设计与数据交互规范见 url设计与数据交互说明

MySQL作为OSF的关系型数据库,除Feed之外的所有数据均由其存储,OSF表设计

Redis在OSF中的使用,主要缓存用户信息、统计计数,同时存储用户的Feed信息流和Tag与Feed的从属关系

配置

#domain
domain.name=localhost
domain.ip=127.0.0.1
domain.port=8080
context=com.lvwang.osf
#jdbc config
jdbc.driver=com.mysql.jdbc.Driver
jdbc.url=jdbc:mysql://localhost:3306/osf
jdbc.username=root
jdbc.password=xxxxxx
#Redis config
redis.host=localhost
redis.port=6379
redis.password=
redis.maxIdle=300
redis.maxActive=600
redis.maxWait=1000
redis.testOnBorrow=true
#mail
mail.from=examle@mailhost.com
mail.password=xxxxxx
#thumbnail style
post_cover_thumbnail=?imageView2/2/w/500
album_thumbnail=?imageView2/1/w/200/h/200
img_base_url=http://xxx.xxx.xxx/

主要设置 域,MySQL、Redis连接配置,发件人邮箱,缩略图格式,云存储域名

后续版本计划

  • 下个版本将率先实现OAuth登陆
  • 搜索功能
  • 发送链接

License GPL

Copyright (C) 2015 osf

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.

About

OSF是一个开放、自由、分享的内容社区类网站原型,实现多用户,内容的发布、评论、喜欢,消息传递,Feed流,标签分类等内容社区类网站通用功能。你可以用OSF构建一个单纯的社交网站,也可以加入标签成为一个兴趣社区,甚至两者皆可,这一切OSF都已为你提供。

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • CSS 44.9%
  • JavaScript 36.6%
  • Java 18.4%
  • HTML 0.1%

AltStyle によって変換されたページ (->オリジナル) /