Demo: http://onecoin.im
This is a website project powered by Ember.js(ember-cli) and Padrino(Grape).It provides many nice tools to track the <onecoin.eu>'s info, and to help members to make better decisions.
这是一个用Ember.js作为前端框架,Padrino作为后台Api驱动的Web应用。该网站提供了很多好工具用于跟踪维卡比官网最新通告信息,帮助会员作出更好投资决定。
-
ruby 2.1.5
-
MySQL 5.x, you should set utf-8 default encoding utf-8 at
my.cnf
, like this:[client] # on 5.0 or 5.1 default-character-set=utf8 [mysqld] default-character-set=utf8 [mysqld] # on 5.6 collation-server = utf8_unicode_ci character-set-server = utf8
-
memcached
-
nginx as web server,
config/nginx.conf
is my nginx configuration snippet.
- run
bundle install
- copy
config/app_config.example.yml
toconfig/app_config.yml
and copyconfig/database.example.yml
toconfig/database.yml
- modify database config for your need.
- create database match your database.yml and start your database.
- run
bundle exec rake secret
to generate session secret key and fill it in app_config. - run
bundle exec rake ar:migrate
to setup database schema. - run
bundle exec rake db:seed
to generate admin user. - start memcached with
memcached -d
. - run
bundle exec thin start
for development environment and run./zbatery.sh start
for production environment.
remove such lines in Gemfile
and run with thin.
gem 'kgio'
gem 'zbatery'
- ember.js: http://emberjs.com/
- ember-cli: https://github.com/ember-cli/ember-cli
- padrino: http://www.padrinorb.com/
- grape: http://intridea.github.io/grape
- robbin: https://github.com/robbin/robbin_site