Skip to content

swashcap/ts-agh

Repository files navigation

ts-agh

A TypeScript Apollo GraphQL Hapi server.

Getting Started

  1. Clone the repository
  2. Install dependencies: npm install
  3. Build: npm run build
  4. Start the server: npm start
  5. Open http://localhost:4000/graphql

The Goodies

  • npm run build builds the TypeScript files in src into JavaScript files, output in build
  • npm run prettier auto-formats source with Prettier
  • npm 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

Docker

# Build an image
docker build -t swashcap/ts-agh .

# Run a container
docker run --rm -it -p 4000:4000 swashcap/ts-agh

About

A TypeScript Apollo GraphQL Hapi server

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published