Skip to content

GeorgioWan/oERP

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

56 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

oERP

oERP is a simple ERP with Ruby on Rails.

Environment

This is my develop environment and the version:

  • Ubuntu 15.04
  • Rails 4.2.0
  • Ruby 2.2.3

Editor

I use Sublime Text 2 to code, if you use the same as me, you could install some plugin:

Note: Package Control has different install way for sublime text 2 and sublime text 3.

I also do this setting( Preferences > Settings > User ) :

 {
   # 把 tab 換兩個空白字元
   "translate_tabs_to_spaces": true,
   "tab_size": 2,
   # 高亮所在行
   "highlight_line": true,
   # 存檔時移除多餘的空白
   "trim_trailing_white_space_on_save": true
 }

Reference: ihower's blog

Installation

  • Clone oERP repo:
 git clone https://github.com/GeorgioWan/oERP.git
  • Cause we use Carrierwave with RMagick to upload image, so you should install libmagickwand-dev first:
sudo apt-get install libmagickwand-dev

Here is my note about Carrierwave

  • Remember to bundle install:
 bundle
  • Then, run:
 rake db:migrate

Seed and Rebuild

  • 新增 seed 方便生成 data
 rake db:seed
 # 單純生成 data
 
 rake db:reset
 # 資料太亂想重建,可以單純作 reset 重生 data 就好
  • 如果想完全清空(包含tmp、log...etc),我寫了 rake 方便重建
 rake dev:rebuild
 # 清空重建 schema
 
 rake dev:rebuild_all
 # 清空重建並用seed生成 data

About

Stop dev currently.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published