A TypeScript Apollo GraphQL Hapi server.
- Clone the repository
- Install dependencies:
npm install
- Build:
npm run build
- Start the server:
npm start
- Open http://localhost:4000/graphql
npm run build
builds the TypeScript files in src into JavaScript files, output in buildnpm run prettier
auto-formats source with Prettiernpm test
builds the project and runs the unit tests, written using Ava- The server uses Hapi, with logging wired up using good
- Husky installs commit hooks, including testing and commitlint
# Build an image
docker build -t swashcap/ts-agh .
# Run a container
docker run --rm -it -p 4000:4000 swashcap/ts-agh