按照 Jason 小哥的说法,OneFraction 的设计初衷是作为一个平台,让用户通过平台支付租金而不是支票或银行转账。其价值来自于利用平台产生的数据最终创建一个租赁市场,用户可以通过其找到完美的公寓。
他的技术选型是这样的:Server 端用 Node.js 写就。服务器使用 GraphQL 和 apollo-server 在客户端和服务器之间传递数据,并以类型友好的方式键入以与 Mongo 交互。账户系统则选用 accounts.js。
This project can be used as a full-stack boilerplate for you to learn some cool things or build your next app off of. It's pretty much a top picks of my favorite tech and best practices. I hope you enjoy it!
If you're trying to expand into some of the technologies I'm using here, star it, fork it and start playing! Feel free to find my email at the bottom of my site and reach out with any questions.
Built using react-native-web
because it's really cool and really easy to turn into a mobile app
Written in Node.js. The server uses GraphQL with apollo-server
for delivering data between client and server and typegoose
for interacting with Mongo in a nice type-friendly way.
Accounts are set up using the wonderful accounts.js
library.
type-graphql
and graphql-codegen
are used to generate types for all my GraphQL resolvers to keep client and server totally and beautifully in sync.
I've included a number of animations using plain CSS and react-spring
. If you're a react developer and want to animate your work learn react-spring
. Thank me later. This project is using Plaid to access read info for users bank accounts and Google Place API for address lookup.
To get this working right you'll need to create API keys for Google Places and Plaid. Then add them to the client and server config files.
# Run mongo
sudo mongod
# In ./server
yarn install
yarn watch
# In ./client
cp ./src/config/example.env.json ./src/config/development.env.json
yarn install
yarn start
yarn gen:types:watch