# osf **Repository Path**: java2demo/osf ## Basic Information - **Project Name**: osf - **Description**: OSF是一个开放、自由、分享的内容社区类网站原型,实现多用户,内容的发布、评论、喜欢,消息传递,Feed流,标签分类等内容社区类网站通用功能。你可以用OSF构建一个单纯的社交网站,也可以加入标签成为一个兴趣社区,甚至两者皆可,这一切OSF都已为你提供。 - **Primary Language**: Unknown - **License**: GPL-3.0 - **Default Branch**: master - **Homepage**: http://osf.coding.io/welcome - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 192 - **Created**: 2015-08-23 - **Last Updated**: 2020-12-18 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README ## OSF 正如名字一样,OSF是一个开放、自由、分享的内容社区类网站原型。你会发现目前绝大多数的社交类网站、内容分享类、社区类、兴趣垂直类网站都有共同的特性,包括多用户,内容的发布、评论、喜欢,消息传递,Feed流,标签分类等等。打造OSF的初衷就是为了实现这些通用的模块,构建一个集合以上特点的内容社区类网站的原型。你可以用OSF构建一个单纯的社交网站,也可以加入标签成为一个兴趣社区,甚至两者皆可,这一切OSF都已为你提供。 ![welcome](doc/welcome.png) ## 主要功能 * 邮箱注册激活验证 * 多用户、用户间互相关注 * 标签系统 - Feed流 * 关注用户Feed * 关注标签Feed * 说说、日志、相册 * 评论、回复 * 通知系统 * 个人信息设置、账户安全 * 上传图片云存储 同步提供下github地址: ## Demo 此项目的Demo版演示已经部署在Coding.net [http://osf.coding.io/welcome](http://osf.coding.io/welcome) 演示用户: | 邮箱 | 密码 | | -------------- |:-------------:| | osfdemo1@163.com | demo123456 | | osfdemo2@163.com | demo123456 | **注意**:如果自行注册登录,请使用真实邮箱地址,osf会为新注册用户发送激活链接 ## UI Sketch文件下载:[osf_sketch](http://pan.baidu.com/s/1hq5zI1e) ![explore](doc/osf_sketch_preview.png) ## 技术选型 OSF选择Spring MVC作为后端基础框架,实现RESTFull url,为实现尽可能的前后端分离,除首屏数据渲染外均通过Ajax+json形式更新前端,url设计与数据交互规范见 [url设计与数据交互说明](doc/url.md) MySQL作为OSF的关系型数据库,除Feed之外的所有数据均由其存储,[OSF表设计](doc/osf_db.png) 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连接配置,发件人邮箱,[缩略图格式](http://developer.qiniu.com/docs/v6/api/reference/fop/image/imageview2.html),云存储域名 ## 后续版本计划 * 下个版本将率先实现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 .