Skip to content

Latest commit

 

History

History
34 lines (25 loc) · 1.01 KB

README.md

File metadata and controls

34 lines (25 loc) · 1.01 KB

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