Short description and motivation.
How to use my plugin.
Add this line to your application's Gemfile:
gem 'panda'
And then execute:
$ bundle
Or install it yourself as:
$ gem install panda
- run rails test:
rails test
- 注意fixture加载的方式:
panda_users(:one)
, 需要加namespacepanda_
- 注意fixture加载的方式:
- run dummy app in the root folder: 'rails s'.
- 魔法在
panda/bin/rails
里面.APP_PATH = File.expand_path('../test/dummy/config/application', __dir__)
- 魔法在
- postman scripts.
- 后台登录: http://localhost:3000/admin
- 更新版本号:
lib/panda/version
Contribution directions go here.
The gem is available as open source under the terms of the MIT License.
- User
- User model
- Rest api for Avatar upload
- Identity model
- Profile model
- Login with devise
- 手机登录
- 微信登录
- 邮箱登录
- 账号密码登录
- 苹果登录
- Login with wechat
- User
- wx_pay, WechatMiniService from Tekapic.
- 优惠券
- 常用可通用的功能写到subfolder里面以gem的形式加载.
- swagger
- Kaminari pagination
- Localization
- ElasticSearch
- Redis
- ELK Log
- Sidekiq
- Puma auto restart. 解决ruby内存泄漏到问题
- OAuth
- JWT
- RPush
- ActiveAdmin
- 朋友圈
- 照片
- 文字
- 点赞
- 评论
- 搜索
- 订阅
- Panda installer
- 添加自动加载路径
routes/*.rb
到config/application.rb
里面去 - [ ]
- 添加自动加载路径
- 订单系统
- 支付系统
- spree商城
- sentry rails
- newrelic 免费版
- devise authentication in go
- APIs in go
- nginx configuration
- APIs in python
- devise authentication in python
- 小程序generator
- RN app generator
- [ ]
- Rails Engine和Rails Plugin的区别.
- 加载本地gem:
gem 'core', path: '../core'
- Rails is the biggest engine.
- Thredded, Thredded is a Rails 4.2+ forum/messageboard engine. Its goal is to be as simple and feature rich as possible.
- Spree,Spree is a complete open source e-commerce solution built with Ruby on Rails.
- Devise,Flexible authentication solution for Rails with Warden.
- Start with rails engine
- A Guide to Rails Engines in the Wild: Real World Examples of Rails Engines in Action
- Rails 引擎初探
- 默认Engine不会加载gemspec里面的内容,导致
uninitialized constant DeviseTokenAuth
错误. 解决办法:# 把下面的内容加入到lib/panda.rb顶部, https://stackoverflow.com/questions/5159607/rails-engine-gems-dependencies-how-to-load-them-into-the-application # requires all dependencies Gem.loaded_specs['yourengine'].dependencies.each do |d| require d.name end
- ActiveAdmin routes放engine namespace下面会导致资源加载的问题,解决办法是把routes放
Rails.application.routes.draw do
下面, 具体细节查看routes/api.rb
.