jdivock / chalk-lifts Goto Github PK
View Code? Open in Web Editor NEWLift tracking site leveraging GraphQL and Relay
Lift tracking site leveraging GraphQL and Relay
Stop being a bad dev
Make a "viewer" root that maps to user, maybe just put the user in session storage and use that to retreive stuff. will make a lot of mutation fetches much much easier
wat.
May need to file something against relay-starter-kit. the babel-relay babel plugin runs on update-schema and requires schema.json . . . but update-schema generates schema.json
getting data.indexOf not a function with this code enabled
https://github.com/jdivock/chalk-lifts/blob/master/data/Schema.js#L286
QLifts
BumLifts
Lifterly (Lana be soo mad)
BroNotCoolLifts
With the new knex seed/migrate stuff my close connection hack in update-schema no longer works. The real solution here is to find a way to mock the dbConnection object when generating the schema, time to go play with babel-rewire some more . . .
This is just my shit show project, no point in doing sep dep, just start building some stuff.
Tired of fighting with this
app.use('/graphql', graphqlHTTP({ schema: MyGraphQLSchema, graphiql: true }));
Should set up the /graphiql path, but no matter what I do it tries to fire a query
https://github.com/jdivock/chalk-lifts/blob/master/js/components/AddLiftDialog.js#L78
Had to use onClick instead, but the materialUI example shows using onTouchTap
Otherwise the script just hangs, super annoying and I'm going to forget the next time I have to regenerate. My only current through is to run rewire on schema to replace the db connection with a stub while I generate the schema.
Set it to run off ENV process variable
This makes me sad, I can enable them with /webpack-dev-server but then the react dev tools stop working . . .
Schema.js was never meant to be this gigantic
Use passport, no login wth fb or google crap, just salt passwords and blah blah blah
https://github.com/brysgo/graphql-bookshelf
Hopefully it's jives with Relay
(obj) => {
// This is super hacky, might need bookshelf or a way
// to define types to decent what the obj is
if (obj.workout_id) {
return Lift;
} else if (obj.email) {
return Account;
} else if (obj.account_id) {
return Workout;
}
return null;
}
Foreign keys keep dying, not sure if there's a proper way to protect it
Starting to dirty it up with edit or save logic, should just be a dumb form, mutations are probably better kept outside back in the workout component and passes in the save handler and other actions
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.