hapi-graphql-typescript
uses Apollo Server, Typescript, Node.js, Hapi and MongoDB.
The quickest way to get started with Hapi-graphql-typescript 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/hapi-graphql-typescript.git server
# change directory to server folder
$ cd server
Install dependencies and devDependencies:
$ yarn install / npm install
Start mongodb server:
$ sudo service mongod start
# restore database where replace PATH where project located
# example:- mongorestore /home/user/work/server/database
$ mongorestore PATH/server/database
Configuration environment and change basic credentials:
$ cp .env.example .env
Start the apollo/hapi server:
$ yarn start
Start the development server:
$ yarn start:dev
View the website at: http://localhost:4003/graphql
# Only single and simple test is present
$ yarn run test
- Language - TypeScript
- Apollo server (Graphql)
- With REST API - Hapijs
- Focus on high performance
- TsLint
- Circle CI
- Docker
- Validation - Joi (For reset API)
yarn build
- Transpile TypeScript codeyarn clean
- Remove build folderyarn start
- Run applicationyarn start:dev
- Run application in development modeyarn run fix
- Run for typescript lintingyarn run test
- Run for test
- #Hapi for node js framework
- #Apollo-Server for Official Apollo server & Modules
- #Graphql for Official Graphql & Modules
- #Jest for Official testing tools
- #MongoDB for Official Database management
- #Docker for container list
- #Yarn for Official package manager
- #CodeEditor Official text editor
- #StackOverflow thanks for helping and provide solution on every problem