TrillCyborg/onefraction: React/ApolloGraphQL/Node/Mongo demo written in Typescript

Authored by github.com and submitted by TrillCyborg

This is a platform I began building for a client. After he signed and I began building he decided to pivot and not pay me. Sometimes you get screwed in business but at least now I have a cool boilerplate to give away.

follow me on Twitter - follow the designer

OneFraction was supposed to be a platform that gave users rewards for paying their rent through the platform as opposed to check or bank transfer. The value would come from leveraging data to eventually create a rental marketplace where users can find the perfect apartment to move into.

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.

# 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

cyancynic on June 8th, 2019 at 17:31 UTC »

I've started acting like lawyers - I need a retainer to get started. I pay myself from the retainer, when the retainer gets low, I send a bill. When the retainer gets empty, I stop working.

No credit.

GotenXiao on June 8th, 2019 at 17:24 UTC »

Fuck You, Pay Me - Mike Montero gave a talk years ago about working as a freelancer, or running a studio, and ensuring that you will actually get paid for your work.

c0cky_ on June 8th, 2019 at 17:14 UTC »

Sorry this happened to you, Let this be a lesson to others that you shouldn’t put fingers to keys until the ink of the deal has dried.

This happens a lot.

Always have a contract. Even if it’s only over a couple hundred dollars. There are tons of free templates online.

Another good practice is to try to get an upfront payment so that you know they’ll be good for the rest.