• Stars
    star
    284
  • Rank 145,616 (Top 3 %)
  • Language
    JavaScript
  • License
    MIT License
  • Created over 8 years ago
  • Updated almost 5 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

OpenResty China Community

OpenResty China

一个运行在OpenResty上的基于lor编写的社区软件。

  • 主要页面直接采用了ruby-china的样式
  • 完全基于OpenResty,是入门OpenResty Web开发的良好范例
  • 基于Lor Framework,轻松简单的开发Sinatra风格的web应用
  • 存储采用MySQL,文件本地落地存储

首页

安装

  • 首先安装OpenResty和lor框架,安装成功的标志是以下三个命令可以正常输出
    • nginx -v
    • resty -v
    • lord -v
  • 将仓库中提供的sql文件导入到MySQL
  • 修改配置文件app/config/config.lua为本地对应配置,强烈建议将以下值修改为不同配置
    • session_secret 用于session加密
    • pwd_secret 用户数据库密码存储时加密
  • 配置静态文件目录,这个目录用于存放用户上传的头像、文章图片、评论图片等
    • 默认的目录为/data/openresty-china/static,请在本地新建此目录,并保证该目录有供应用访问和修改的权限
    • 若要修改上述默认目录,请修改app/config/config.lua中的upload_config.dir和nginx配置文件中的$static_files_path的值,保证两个值一致
    • 在设置好静态文件目录后,将install/avatar下的所有文件拷贝到该目录,如 cp install/avatar/* /data/openresty-china/static/
  • 执行sh start.sh即可使用conf/nginx-dev.conf启动开发环境,也可使用sh start.sh prod启动生产环境。若要用于生产,强烈建议用户检查并更改app/config/config.lua和conf/nginx-prod.conf为本地合适的配置
  • 访问http://localhost:8888即可体验openresty china功能
  • 有几个初始账户供体验: admin/sumory/momo/jerry,密码均为123456

讨论交流

关于Lor框架和OpenResty-China的更多问题,可加入QQ群在线讨论:522410959

License

MIT

More Repositories

1

lor

a fast, minimalist web framework for lua based on OpenResty
Lua
1,015
star
2

gru

即时通讯服务集群,可用于构建聊天等实时交互系统
CSS
280
star
3

sumorio

a sns system for developers based on nodejs
JavaScript
133
star
4

moklr

another "postman", status server, http request mock.
JavaScript
87
star
5

uc

UC是一个用于处理分布式系统中ID生成,唯一性字段值管理的通用模块.
Java
69
star
6

gru-example

Gru使用示例 - Web Chat
JavaScript
61
star
7

BTC

all about to build a bitcoin mining pool, auto-pay system, scanning blocks etc.
Python
59
star
8

confd

configuration management
Go
44
star
9

lincell

lincell是用Node.js开发的轻型文件编辑器,只需一条命令即可将文件夹变成一个工作空间供远程访问
JavaScript
33
star
10

sumory-note

all about to build a bitcoin mining pool, auto-pay system, scanning blocks etc.
Python
31
star
11

idgen

id generator based on 'snowflake'
Go
29
star
12

nodis

Prefix match search and Segment words search built on Node.js and Redis
JavaScript
16
star
13

ciao

a minimal C++ web framework (beta)
C++
13
star
14

beauty

Beautiful console: colorful && stylized. Use it without doing anything to `console`.
JavaScript
7
star
15

baseN

Encode number to base(2~62) hash string and decode it back.
JavaScript
7
star
16

gotty

A tcp server framework for Golang.
Go
5
star
17

ltcblockchain

a Litecoin data explorer, just like blockchain.com or ltc.block-explorer.com
JavaScript
4
star
18

runbot

与`moklr`搭配的status api请求检查服务
Go
3
star
19

litchi

websocket server experiment just for fun.
Lua
3
star
20

social_oauth

3
star
21

milor

a minimal lib for http utility.
2
star
22

scripts

dotfiles/useful scripts etc.
Shell
2
star
23

orange.sumory.com

website for `orange`
CSS
2
star
24

sumory.github.io

my personal site.
HTML
2
star
25

hexo-theme-fatty

just a theme for hexo
CSS
1
star
26

jwt

a java web project template - based on Spring MVC and Spring JDBC
Java
1
star
27

baseN4go

baseN for go
Go
1
star
28

log4go

Go
1
star
29

mas

a state management library.
C++
1
star
30

orange-peel

Orange Dashboard
JavaScript
1
star
31

lor_site

documents for `lor` framework
HTML
1
star
32

mkd

cli to view and edit markdown files.
JavaScript
1
star