This sample uses typeorm for the code first entities. http://typeorm.io/#/
more info on tsconfig: https://youtu.be/dPgAXFcFHCM
Ben Awad's tslint config: Video: https://youtu.be/syddCEdvAhI Github: https://github.com/benawad/node-ts-graphql-boilerplate/blob/10_session_express_middleware/tslint.json
tsconfig example: https://github.com/benawad/node-ts-graphql-boilerplate/blob/10_session_express_middleware/tsconfig.json
Links from video: https://github.com/tjunnone/npm-check-updates
https://github.com/prismagraphql/graphql-yoga
graphql-yoga is based on the following libraries & tools:
express/apollo-server: Performant, extensible web server framework graphql-subscriptions/subscriptions-transport-ws: GraphQL subscriptions server graphql.js/graphql-tools: GraphQL engine & schema helpers graphql-playground: Interactive GraphQL IDE Features GraphQL spec-compliant File upload GraphQL Subscriptions TypeScript typings GraphQL Playground Extensible via Express middlewares Schema directives Apollo Tracing Accepts both application/json and application/graphql content-types Runs everywhere: Can be deployed via now, up, AWS Lambda, Heroku etc. Supports middleware out of the box.
psql password
--connects to a db for your username - needs to be created
\c graphql-ts-server-boilerplate
-- connects to this projects db
\d
-- displays db details