Qeetup App Server
Application template for server GraphQL projects and implementation of application for Qeetup about GraphQL
Technology stack
- 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
Installation
- Clone repository -
git clone git@github.com:qest-cz/qeetup-app-server.git
- Install modules -
yarn install
or simplyyarn
Settings
All application settings can be modified locally via .env
file
GraphQL Code Generator
For generating TypeScript interfaces from GraphQL schemas use yarn generate
Run the project
- 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
Tests
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
Commit message format is dictated by Karma specification