All Projects → playcommunity → Play Community

playcommunity / Play Community

Licence: other
一个基于 Play Framework 开发的开源社区系统。

Programming Languages

javascript
184084 projects - #8 most used programming language
scala
5932 projects

Projects that are alternatives of or similar to Play Community

Kebs
Scala library to eliminate boilerplate
Stars: ✭ 113 (+6.6%)
Mutual labels:  akka, play
Lagom
Reactive Microservices for the JVM
Stars: ✭ 2,590 (+2343.4%)
Mutual labels:  akka, play
Akka Persistence Mongo
Implementation of akka-persistence storage plugins for mongodb
Stars: ✭ 99 (-6.6%)
Mutual labels:  mongodb, akka
Akka Batteries
Utilities for Akka cluster in production
Stars: ✭ 103 (-2.83%)
Mutual labels:  akka
Aqua
💡 A website and user system starter
Stars: ✭ 1,391 (+1212.26%)
Mutual labels:  mongodb
Shoppoint
📢 A mern stack e-commerce app
Stars: ✭ 105 (-0.94%)
Mutual labels:  mongodb
Webfluxtemplate
Spring Webflux template application with working Spring Security, Web-sockets, Rest, Web MVC, and Authentication with JWT.
Stars: ✭ 107 (+0.94%)
Mutual labels:  mongodb
Vue2 Shop
A shop developed with Vue2 + Vue-router + Axios + Vuex + Node + Express + MongoDB + Webpack
Stars: ✭ 103 (-2.83%)
Mutual labels:  mongodb
Akka Monitoring
Monitoring system instrumentation for Akka.NET actor systems
Stars: ✭ 105 (-0.94%)
Mutual labels:  akka
Squidex
Headless CMS and Content Managment Hub
Stars: ✭ 1,583 (+1393.4%)
Mutual labels:  mongodb
Better Files
Simple, safe and intuitive Scala I/O
Stars: ✭ 1,424 (+1243.4%)
Mutual labels:  akka
Mongo Php Library
MongoDB PHP library
Stars: ✭ 1,391 (+1212.26%)
Mutual labels:  mongodb
Android Kubernetes Blockchain
WARNING: This repository is no longer maintained ⚠️ This repository will not be updated. The repository will be kept available in read-only mode. Refer to https://developer.ibm.com/patterns/category/blockchain/ for other blockchain code patterns.
Stars: ✭ 105 (-0.94%)
Mutual labels:  mongodb
Longevity
A Persistence Framework for Scala and NoSQL
Stars: ✭ 103 (-2.83%)
Mutual labels:  mongodb
Mongorito
🍹 MongoDB ODM for Node.js apps based on Redux
Stars: ✭ 1,409 (+1229.25%)
Mutual labels:  mongodb
Pythonstudy
Python related technologies used in work: crawler, data analysis, timing tasks, RPC, page parsing, decorator, built-in functions, Python objects, multi-threading, multi-process, asynchronous, redis, mongodb, mysql, openstack, etc.
Stars: ✭ 103 (-2.83%)
Mutual labels:  mongodb
Chanamq
Open source AMQP messaging broker based on Akka
Stars: ✭ 105 (-0.94%)
Mutual labels:  akka
Akka Http Quickstart Scala.g8
Stars: ✭ 103 (-2.83%)
Mutual labels:  akka
Spring Boot 2.x Examples
Spring Boot 2.x code examples
Stars: ✭ 104 (-1.89%)
Mutual labels:  mongodb
Meanstackjs
Mean Stack JS - MongoDB, Express JS, Angular JS & Node JS
Stars: ✭ 104 (-1.89%)
Mutual labels:  mongodb

PlayCommunity 社区系统

PlayCommunity 社区系统基于 Play Framework 2.6.x 开发而成,目前正在运营PlayScala社区

参与贡献

Play For Scala 开发指南
PlayScala社区贡献指南

下载&编译

git clone https://github.com/playcommunity/play-community.git

打开命令行,进入 play-community 目录,执行命令:

sbt dist

最终生成的Play应用路径为:

play-community\target\universal\play-community-<version>.zip

配置

配置 MongoDB 连接

play-community-<version>.zip 文件上传至服务器并解压,打开配置文件 conf/application.conf,配置如下:

# 配置 MongoDB
mongodb.uri = "mongodb://user:[email protected]:port/play-community?authMode=scram-sha1"

需要注意的是,MongoDB需要开启ReplicaSet功能,开启方法可以参考官方文档:Deploy Replica Set,也可以使用群友梦境迷离贡献的一键启动脚本,该脚本需要在Git Bash中运行。启动脚本的使用方法如下:

  • 打开Git Bash,切换当前目录至项目根目录;
  • 进入配置文件目录:cd conf
  • 执行启动脚本:bash start_mongo.sh,该脚本会启动mongod进程,并随后自动进入mongo shell
  • mongo shell中输入如下命令初始化ReplicaSet:
var config = {_id:"rs",members:[{_id:0,host:"127.0.0.1:27001"},{_id:1,host:"127.0.0.1:27002"}]};
rs.initiate(config);
  • 检查ReplicaSet状态:rs.status()

以上启动脚本会启动两个MongoDB节点,分别是127.0.0.1:27001127.0.0.1:27002,数据库文件位置为C:/mongo/data,日志路径为:C:/mongo/logs/log1.logC:/mongo/logs/log2.log

配置发送邮件账户:

打开配置文件 conf/application.conf,配置如下:

# 配置发送邮件账户
play.mailer {
  host = "smtp.163.com"
  port = 25
  user = "[email protected]"
  password = "xxx"
}

配置搜索服务 ElasticSearch

安装 ElasticSearch
下载任意一个版本,解压并执行启动命令:

官方的安装包由于安全问题不允许在 root 账户下启动。

cd elasticsearch-5.5.0/bin
nohup ./elasticsearch > ./log.txt&

打开配置文件 conf/application.conf ,配置如下:

# 配置 ElasticSearch
es {
  enabled = true
  index = "play-community"
  host = "127.0.0.1:9200"
}

启动

执行下面命令启动应用:

nohup ./play-community -J-Xms1g -J-Xmx1g -Dhttp.port=80 > ../log.txt &

关于Play应用的启动、停止以及升级,请参考:Play For Scala 开发指南 - 第5章 第一个Play项目 - 发布Play项目

管理

系统的管理入口为:

http://服务器地址/admin

默认管理员账户为:[email protected] 123456

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].