Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/swashcap/ts-agh
A TypeScript Apollo GraphQL Hapi server
https://github.com/swashcap/ts-agh
Last synced: about 2 months ago
JSON representation
A TypeScript Apollo GraphQL Hapi server
- Host: GitHub
- URL: https://github.com/swashcap/ts-agh
- Owner: swashcap
- License: mit
- Created: 2018-12-07T22:19:53.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2018-12-08T22:46:11.000Z (about 6 years ago)
- Last Synced: 2024-11-10T03:37:40.294Z (3 months ago)
- Language: TypeScript
- Size: 76.2 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ts-agh
A [TypeScript](https://www.typescriptlang.org) [Apollo GraphQL Hapi server](https://www.npmjs.com/package/apollo-server-hapi).
## Getting Started
1. Clone the repository
2. Install dependencies: `npm install`
3. Build: `npm run build`
4. Start the server: `npm start`
5. Open## 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](https://prettier.io)
* `npm test` builds the project and runs the unit tests, written using
[Ava](https://github.com/avajs/ava)
* The server uses [Hapi](https://hapijs.com), with logging wired up using
[good](https://github.com/hapijs/good)
* [Husky](https://github.com/typicode/husky) installs commit hooks, including
testing and [commitlint](https://marionebl.github.io/commitlint/#/)## Docker
```shell
# Build an image
docker build -t swashcap/ts-agh .# Run a container
docker run --rm -it -p 4000:4000 swashcap/ts-agh
```