ctco / nodejs-graphql-template Goto Github PK
View Code? Open in Web Editor NEWTemplate project for Node.js® GraphQL APIs
License: MIT License
Template project for Node.js® GraphQL APIs
License: MIT License
Error example
C:\devtools\idea2016.3.1\bin\runnerw.exe C:\tools\node\node.exe C:\tools\node\node_modules\npm\bin\npm-cli.js run test:integration
> [email protected] test:integration C:\project\project-name
> jest --projects src/graphql
module.js:472
throw err;
^
Error: Cannot find module 'C:\project\project-name\node_modules\jest-cli'
at Function.Module._resolveFilename (module.js:470:15)
at Function.Module._load (module.js:418:25)
at Module.require (module.js:498:17)
at require (internal/module.js:20:19)
at getJest (C:\project\project-name\node_modules\jest\node_modules\jest-cli\build\cli\getJest.js:22:12)
at Object.run (C:\project\project-name\node_modules\jest\node_modules\jest-cli\build\cli\index.js:39:48)
at Object.<anonymous> (C:\project\project-name\node_modules\jest\node_modules\jest-cli\bin\jest.js:14:25)
at Module._compile (module.js:571:32)
at Object.Module._extensions..js (module.js:580:10)
at Module.load (module.js:488:32)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] test:integration: `jest --projects src/graphql`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] test:integration script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\pavel.yeliseev\AppData\Roaming\npm-cache\_logs\2017-06-02T12_33_02_399Z-debug.log
Process finished with exit code 1
Capture and log query information: query, operation name, query variables. Check if existing middleware can do that!
Does schema first development make sense?
https://github.com/apollographql/apollo-server/blob/master/README.md
Decision required: stay with koa or
go with express to align with rest template
Configure Travis, A-la CRA
Image should be built for
Automate the process. Schema in, types out
Derive schema out of multiple files
Set up graphqlgen
in favor of graphql-to-typescript
Expected benefit: type safe resolvers
GraphQL just silently returns "undefined"
Most probably go ahead with connection / node / edge spec from Relay
capture
Consider using either Zone.js (warning: angular/zone.js#700) or async hooks
Verify that our app builds on windows machines as well as on linux (travis)
Set up integration test infrastructure.
Use https://medium.com/entria/testing-a-graphql-server-using-jest-4e00d0e4980e as an inspiration or propose an alternative, everything goes.
Definition of done:
documentation, configuration (if required)
Provide examples of DataLoader usage
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.