Coder Social home page Coder Social logo

cywin's Introduction

Cywin

中文版说明

The source code of Cywin: https://github.com/windy/cywin

Cywin is a stock crowdfunding platform, just like angellist but in China.

Cywin can build the connection between startups and talented investors with stock investment.

Cywin is a full-flow platform for the investment process.

in China, its competitors are AngelCruch, as: 天使汇, VC club, as: 创投圈 and etc.

Core process like this:

  1. Startup

    Create Project -> Publish it -> Start financing -> Invite Investor leader -> Investor leader confirm -> Normal Investors follow -> Success

  2. Normal investor

    • Apply Investor leader
    • Follow an investment by investor leader
  3. Investor leader

    • Lead an investment of project
    • Make rule for the investment of project

Cywin now is open source.

Why makes Cywin open-source?

After spending six month to make this project, I realized, I can not ship this platform with my parnter. With lack of resources below the line, I think, it's a fault for me to build it. It costed all my energy.

Besides, the confict of fundamental production principle with parnter was more and more serious. With never positive feedback for Cywin, I finally decided to quit the project.

A few month later, I made Cywin open source when the source code of Cywin would not be used. I hope it will be useful for other friends like you.

Will it be maintained?

Exactly not. Since I have realized this road is wrong.

But Cywin is a pretty project. It is made by clean and neat code, its architecture is awful flexible, with lots of test cases( 120+ ).

Besides, it has beautiful UI, supports responsive page, good scss and clean AngularJS code.

In the whole, it's one of my most proud works alone.

Can I get your help for it?

Yes, I am pleasure if you want to study AngularJS and Ruby on Rails on the strength of Cywin. If you want to continue developing, I'm glad too.

Fell free to submit your issue when you find something wrong. I will help you in my leisure time ASAP.

Good parts you maybe get inspiration

  • Message design ( template support, email push )
  • Login system( customize Devise with ajax registration, invite code support )
  • Role Management( rolify & cancancan )
  • Hybrid AngularJS & Rails best practice development mode
  • AngularJS Directives
  • Responsive Design
  • SCSS organization
  • RESTful Design
  • Multi enviornments & deployment automation ( staging / demo / production with mina )
  • Sunspot search( especially Chinese tokenized system )
  • TDD business logic
  • best practice configuration for Ruby on Rails ( figaro )

Core tech stack

  • Ruby on Rails( 4.1 )
  • AngularJS( Hybrid mode )
  • Foundation 5

Setup

  1. gem install bundler
  2. bundle install
  3. copy config/xx.example.yml to config/xx.yml, xx contains application, database, then adjust it as you need.
  4. rake sunspot:solr:start
  5. rake db:setup
  6. rails s

Visit http://localhost:3000/users/sign_in, and input ADMIN_EMAIL and ADMIN_PASSWORD( configurated in application.yml ) to login it.

Histories of Cywin

2014.10.20

Quit the project

2014.9.15

New UI

improvement of features

2014.8.16

refactor category feature

improvement of features

2014.8.6

refactor home page

improvement of features

2014.4.15

Resigned responsive page, mobile first

Fundamental featctures complete

2014.3.26

Database design and tech choosen


License

It's be licensed under both MIT and GPL.

Additionally, The logos and other pictures are not allowed by commercial purpose.

If you have any question, just leave an issue for it.

cywin's People

Contributors

decode avatar windy avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

cywin's Issues

重写migration

数据库经过大改, 为了方便后续的维护, 直接重写 migration.

启动后,报错!

/var/www/cywin/config/environments/development.rb:48:in `block in <top (required)>': uninitialized constant Rack::LiveReload (NameError),请指教如何修改?

关于silm的一些疑问。

您好.rails 初学者,通过ruby-china社区跳转到您github这边来,看到您有一个close的练手项目
遂down之,想边看源码边模仿着做一个来作为学习实践。
无奈clone下来后,先是折腾了Gemfile中的某个包,
搞了好久好久,总算bundle install 没有异常
README 操作步骤执行完毕,浏览器访问localhost:3000 出现error.
Google好些方案,确实没找到解决办法,遂来求助下。

consol里面定位的error路径是:

doctype html
html
  head
    meta charset="utf-8"
    meta name="viewport" content="width=device-width, initial-scale=1.0"
    title
      - if content_for?(:title)
        = yield(:title) + " | " + Setting.site_name
      - else
        = Setting.site_name
    = stylesheet_link_tag "application", media: "all"  /这一行代码报错
    = javascript_include_tag "vendor/modernizr"
    = javascript_include_tag "application"
    = csrf_meta_tags

error内容我截取关键两段:

Processing by HomeController#index as HTML
  Recommend Load (0.2ms)  SELECT  "recommends".* FROM "recommends"  WHERE "recommends"."deleted" = 'f'  ORDER BY "recommends"."created_at" DESC LIMIT 3
  Investor Load (0.2ms)  SELECT  "investors".* FROM "investors"  WHERE "investors"."status" = 'passed'  ORDER BY "investors"."created_at" DESC LIMIT 3
  PersonRequire Load (0.4ms)  SELECT  "person_requires".* FROM "person_requires"  LIMIT 3
  Rendered home/nologin.html.slim within layouts/application (14.9ms)
Completed 500 Internal Server Error in 534ms

ActionView::Template::Error (File to import not found or unreadable: foundation/functions.
Load paths:
  CompassRails::SpriteImporter
  CompassRails::SpriteImporter
  CompassRails::SpriteImporter
  CompassRails::SpriteImporter
  CompassRails::SpriteImporter
  CompassRails::SpriteImporter
  /Users/xxx/.rvm/gems/[email protected]/gems/babel-source-5.8.35/lib
  /Users/xxx/Documents/github/cywin/app/assets/images
  /Users/xxx/Documents/github/cywin/app/assets/javascripts

处理UI问题

  1. 将所有标题调整一个格式
  2. 将内容格式作初步排版

作者你好

ActionView::Template::Error (undefined local variable or method `current_user' for #<#Class:0x007f4ab250c860:0x007f4ab329b850>):
这个是什么引起的

运行不起来报前段错误

遇到了foundation的问题
File to import not found or unreadable: foundation/functions.
@import "foundation/functions";这个语句报错。

再有将上面注释掉后,报Undefined variable: "$small-only".

项目管理功能

  1. 创建项目
  2. 发起融资需求
  3. 发起招人需求
  4. 删除项目
  5. 编辑项目
  6. 项目发布

高级功能:

  1. 发起第二轮融资
  2. 关闭融资
  3. 关闭招人
  4. 邀请队友加入

i18n pages

  • home page
  • find projects page
  • investors page
  • activities page
  • startup jobs page
  • project create page
  • project show page
  • user home page
  • search page
  • message page
  • setting page
  • login/register/ find my password page
  • project edit page
  • investment management page
  • job management page
  • admin dashboard ( lots of pages )

第一阶段体验问题处理

1、项目logo需做预览剪裁设计
2、发布项目填完首页,无法继续。
3、联系方式栏必填项无需微信和微博号。
4、点击马上开始投资也能链接到查看所有合投项目
// lyf 回复

  1. 剪裁功能第一阶段先不做, 后面统一做 logo, 头像, 等需要图片处理的东西
  2. 发布项目, 布署上的问题, 我刚才已经处理了, 可以继续测试下.
  3. 联系方式已经记下, 我再继续下.
  4. 首页下阶段直接处理

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.