Skip to content

Graphql server boilerplate Apollo server, graphql,express, typescript

Notifications You must be signed in to change notification settings

saddam-satria/graphql-apollo-server

Repository files navigation

Node Graphql Apollo Server Typescript Boilerplate Starter Kit V1

this is a small starter kit pack graphql apollo server with node js typescript. ORM package it's optional, so I don't include it.

## - First Configuration

git clone https://github.com/saddam-satria/graphql-apollo-server

yarn install

Use yarn instead of npm for package manager

- Development Mode

yarn run dev

the browser will serve localhost:5000/graphql

- Testing Mode

yarn test

mocha configure test folder as testing files input

- Production Mode

yarn run build

typescript will compile into javascript file

- Starting Production

yarn start

node will be serve build folder, before use it, don't forget to compile src folder with syntax yarn run build

TIPS

  • in the production mode, compiler folder will in build, static folder in the public folder, if you will host, make sure public folder included

- Lint

yarn run lint

eslint will fix the error problems with your code, based on .eslintrc config file, if you don't want it, change yourself style in .eslintrc.js file

- Prettier

yarn run prettier

prettier will clean up your code lines

latest features

  • Nodejs
  • Express
  • Typescript
  • Mocha chai http testing
  • Husky pre commit
  • Prettier
  • bcrypt helper
  • jwt helper
  • graphql
  • apollo server

made with ❤️ by Saddam Satria

About

Graphql server boilerplate Apollo server, graphql,express, typescript

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published