nest-graphql
uses NestJs Typescript, Typegoose and Redis pubsub for subscription.
The quickest way to get started with Nest-graphql server use github
repository and clone as shown below:
# Have access problem use sudo or run terminal with adminstration
$ git clone https://github.com/AlxPatidar/nest-graphql.git server
# change directory to server folder
$ cd server
Install dependencies and devDependencies:
$ yarn install / npm install
Configuration environment and change basic credentials:
$ cp .env.example .env
Start the nest server:
$ yarn start
Start the development server:
$ yarn start:dev
View the website at: http://localhost:4001/graphql
The most important part of this repository is testing. Indeed I have created this repository only for demonstrate graphql subscription testing.
# Only single and simple test is present
$ yarn run test
- Language - TypeScript
- Graphql(Query mutation and subscription)
- REST API
- Typegoose
- Jest
- Redis
yarn build
- Buildyarn start
- Run applicationyarn start:dev
- Run application in development modeyarn test
- Run for test