Application template for server GraphQL projects and implementation of application for Qeetup about GraphQL
- Node.js - server side JavaScript
- Yarn - package manager
- TypeScript - typed superset of JavaScript
- GraphQL - query language for API
- Appolo Server - GraphQL server
- GraphQL Code Generator - typescript code generator from GraphQL schema
- Jest - testing framework
- Clone repository -
git clone [email protected]:qest-cz/qeetup-app-server.git
- Install modules -
yarn install
or simplyyarn
All application settings can be modified locally via .env
file
For generating TypeScript interfaces from GraphQL schemas use yarn generate
- Developer mode -
yarn dev
- Production mode (plain JavaScript version)
- First build -
yarn build
- Then start -
yarn start
- Optionaly cleaning -
yarn clean
- First build -
- Run code checks -
yarn code:check
All tests are ran by yarn test
, that is an alias for jest
command
- You can also start watch mode by command
yarn test:watch
- To update jest snapshots there is
yarn test:update
- For generating of a code coverage use
yarn test:coverage
Commit message format is dictated by Karma specification