https://github.com/stwind/lls-test
Test project for LLS interview
https://github.com/stwind/lls-test
Last synced: about 1 year ago
JSON representation
Test project for LLS interview
- Host: GitHub
- URL: https://github.com/stwind/lls-test
- Owner: stwind
- Created: 2015-07-18T08:03:38.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2015-07-19T23:53:03.000Z (almost 11 years ago)
- Last Synced: 2025-02-14T06:36:07.461Z (over 1 year ago)
- Language: Ruby
- Size: 219 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Lls
在线 [Demo](http://121.201.24.228/)
### Overview
已实现功能:
* 用户注册及登录
* 同时在线用户/游客数
* 用户/游客在线时间
* 已注册用户资料持久化(mysql)
时间关系,以下方面未能完善。
* Session的清除策略
* 模块组织混乱及粒度过大
* 单元测试
* 更正式的生产环境自动化部署
* 更完善的运行日志
### Up and Running
本地运行需先安装
* Ruby 2.2.2
* Ansible 1.9.1
* Vagrant 1.7.1
Clone项目到本地后,执行
```bash
$ bundle install
```
启动 vagrant 虚拟机,将会在其中自动安装 mysql
```bash
$ vagrant up
```
设置虚拟机中的 mysql
```bash
$ rake setup
```
启动服务器程序
```bash
$ puma
```
在浏览器打开页面`http://localhost:9292`即可使用。