GithubHelp home page GithubHelp logo

lunch-finder-server's Introduction

lunch-finder-server's People

Contributors

dannnyliang avatar

Watchers

 avatar

lunch-finder-server's Issues

Migrate to typescript

Description

  • 在開發 resolver 時,透過 apollo context 拿到的 db object 沒有 type,不易開發
  • 建立 codegen

Note

  • 將來可能要 codegen 給 client side 使用

dataloader improvement

Description

  • 常常用相同的手法查找 User, Restaurant 等 collection,用 dataloader 抽象化拉取資料的過程
  • 效能優化
  • 切分 resolver 進行的步驟

Note

  • 優先度低

Time limit polling

Specification

  • Group 中開啟投票
  • member 可在 option 中複選投票或者隨機投票
  • 即時看到他人的投票
  • 結算
    • 限定時間到達
    • member 全都已投票

optional

  • 更改個人投票
  • 匿名投票

Note

  • key feature
  • 計算投票狀態及邏輯採用 xstate

Apollo context 改為放各 collection

Description

  • 目前 apollo context 放 mongoDB 的 global object,可以取用到所有 collection
  • 應該先定義好各 collection 再放入 context 中,讓 resolver 在存取 DB 時更明顯看出在操作哪一個 collection
  • 避免呼叫錯誤的 collection name

Build Testing

Description

  • 手測麻煩沒效率
  • 研究 apollo server + mongo atlas 的測試
  • 建立 CI (github or heroku)

Migrate to mongoDB

Description

  • firebase realtime database 全是 object 設計,不容易做 pagination query
  • mongoDB 的 sorting 功能較齊全,可自動 sorting id, string, array 等

Note

  • 使用原生 mongo 套件,不使用 mongoose 定義 schema

Todo

  • implement CRUD in mongoDB
  • remove firebase setup

讓 GraphQL schema 更易開發

Description

  • vscode 沒有內建的 graphql syntax linting 以及提示,也無法 variable reference
  • 寫 query string 時也需要一一對照 schema 才能順利寫出來

需求

  • go to definition
  • graphQL syntax linting
  • gql string autocomplete

User 認證及登入

Description

  • 最簡單版本
  • name 當作帳號
  • name 須為 unique

需求

  • 新增帳號
  • 登入、登出
  • 修改 name 需檢查唯一性

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.