This is a sample project which provides a starting point for using Apollo's graphql implementation with Typescript and express.
This includes
- Graphql endpoint which returns a simple Hello world message.
- An express endpoint called
/health
which returns a sample "healthy" message
Replace or build on top of the endpoints to play with the combination of apollo and typescript.
- Clone this repo in your workspace
git clone https://github.com/bal1anD/apollo-graphql-typescript.git
- Navigate into the apollo-graphql-typescript directory and install all dependencies
# install depedencies
npm i
- Start the service
npm run start
or
npm run dev #this provides auto-restart on changes
- Open the routes and play with them
#GraphQl route
http://localhost:4000/graphql
#Express route
http://localhost:4000/health