This is a work in progress, and is not production ready. Feel free to use it as a base, but it's not production ready by any means.
If you want to see how to connect with this repo (using react) checkout this repo
- Learn typescript, lynda and egghead.io have great tutorials. Or check the main website.
- Learn typescripts async/await.
- Learn GraphQL
- Node 6
- Redis
- run
npm install
-
run
npm run dev
This should open a node server on port 8090, and will run the tests and reload any time you make a change.
-
graphiql should be available at here.
-
run
npm run test:coverage
to run tests that will fail if there isn't enough coverage. -
run
npm run test:watch
to re-run the tests whenver a file changes.
To make a basic redis configuration change the port
and host
in the redisConfig (at least for the moment).
-
any file in
src/**/*.test.ts
run using mocha.see
npm run test:*
src/
├── auth.ts // Passport authenticaion
├── graphql // graphql schemas
│ └── schema.gql // main schema
├── index.ts // graphql and server hookup
├── models // used for typeorm db connection
│ ├── index.ts // Data base connection
│ └── user.ts // User model
└── server.ts // server setup and config
- run
npm run build
- run
npm start