Giter Site home page Giter Site logo

zetavg / tripbook Goto Github PK

View Code? Open in Web Editor NEW
3.0 4.0 1.0 1.09 MB

大概可以暫時稱之為一個讓深度共通脈絡得以存在的社交平台。

Home Page: https://trip-book-staging.herokuapp.com/

Ruby 71.65% JavaScript 5.81% HTML 3.50% CoffeeScript 0.01% SCSS 8.10% Slim 10.93%
web-app knowledge-sharing social-network sharing-economy

tripbook's Introduction

TripBook Build Status Coverage Status

The TripBook Project.

Requirements

System

  • Linux or macOS
  • Ruby 2.4
  • Node.js 6.0+
  • ImageMagick

Database

  • PostgreSQL 9.5+

Backing Services

  • Facebook
    • Env FB_APP_ID, FB_APP_SECRET
    • Needs to enable FB Login, the OAuth redirect URI is: [your_host]/users/auth/facebook/callback

Setup

  1. Run bin/setup.
  2. Edit .env.
  3. Edit config/database.yml and run bin/rails db:setup if needed.

Development

Tasks

  • bin/rake js:install: Install JavaScript dependencies using NPM.
  • bin/rake erd:generate: Generate ERD diagram for domain models (requires Graphviz 2.22+).
  • bin/rake syntax:check: Check the code syntax using Rubocop.
  • bin/rake syntax:check_js: Check JS code syntax using ESLint.
  • bin/rake syntax:auto_correct: Auto correct the code syntax using Rubocop.
  • bin/rake staging:bootstrap: Fill the database with testing data.

Guard

Run bin/guard for autotest and livereload.

tripbook's People

Contributors

zetavg avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

steward379

tripbook's Issues

增加「想借這本書的人」頁面

增加「想借這本書的人」頁面,列出想借某一本書(還沒借到)的人,以及他們想看這本書的原因。如果目前的使用者手上有這本書可供出借 *1,會顯示出「對___送出邀請」的按鈕。

*1:
有兩種狀況:

  1. 使用者擁有這本書,書在手上且目前沒有旅程。
  2. 使用者持有這本書,書是在可以出借的狀態。

對 2. 的狀況只要直接送出邀請即可,但針對 1.,必須要在同一個頁面填入旅程規則(「看完這本書之後,要 [還給我/借給下一個人]」之類的問答),再同時建立旅程並送出邀請。

登記借書請求-可以指定想跟誰借

  • 在檢視書籍「大家與書的故事」的地方,增加「我想跟這個人借書」的按鈕,按下之後可以填寫私人訊息想看這本書的原因 (如果沒有登記過的話)。

書的擁有者要能直接從「書架」為書建立新旅程

目前要建立新旅程只能透過「藏書」頁,會為新使用者的 first action circle 增加難度(需要多介紹「藏書」區)。把建立新旅程的功能搬到「書架」也有的話,就能日後再介紹「藏書」區的功能(可能是使用者已經把書借出的時候,介紹說「藏書」區可以一直追蹤你擁有的書的狀態)。

2017-08-28 9 46 37

使用者 Onboarding Flow

  • FB 登入進來的使用者,需要確認他們的常用信箱。
  • 需要使用者決定 username。
  • 跟使用者簡介網站功能。

當使用者接受借書邀請時,接手方和送出方要能看到彼此的聯絡資料

未來需要設計一套方式,讓系統在使用者整個借書的過程中逐步和轉手的對象做資訊揭露,讓雙方逐漸建立信任或由當下知道的資訊來決定是否繼續(送出或接受邀請),現階段特別是當使用者接受借書邀請時,接手方和送出方要能看到彼此的聯絡資料。

未來一種做法是讓使用者在雙方沒有互相確認邀請前,只知道「平台方做了何種認證」+「會拿到什麼資料」,例如「已連結 FB 帳號 (接受後可檢視)」、「已認證手機號碼 (接受後仍不可檢視)」。

進階一點的話可以讓兩位互不相識的使用者檢視彼此的共同點,例如都曾參加過的活動、都看過的書等。

通知中心

增加一個 Notification model,用來記錄使用者的通知,格式大概如下:

  • user_id
  • created_at
  • read_at
  • completed_at
  • subject_type
  • subject_id
  • verb
  • object_type
  • object_id
  • complement

...

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.