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.
git clone https://github.com/saddam-satria/graphql-apollo-server
yarn install
Use yarn instead of npm for package manager
yarn run dev
the browser will serve localhost:5000/graphql
yarn test
mocha configure test folder as testing files input
yarn run build
typescript will compile into javascript file
yarn start
node will be serve build folder, before use it, don't forget to compile src folder with syntax yarn run build
- in the production mode, compiler folder will in build, static folder in the public folder, if you will host, make sure public folder included
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
yarn run prettier
prettier will clean up your code lines
- Nodejs
- Express
- Typescript
- Mocha chai http testing
- Husky pre commit
- Prettier
- bcrypt helper
- jwt helper
- graphql
- apollo server