Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dustinspecker/hapi-ts-experiment
Experimenting using TypeScript with Hapi
https://github.com/dustinspecker/hapi-ts-experiment
Last synced: 2 days ago
JSON representation
Experimenting using TypeScript with Hapi
- Host: GitHub
- URL: https://github.com/dustinspecker/hapi-ts-experiment
- Owner: dustinspecker
- Created: 2015-05-24T00:28:21.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2015-05-24T00:29:10.000Z (over 9 years ago)
- Last Synced: 2023-04-09T18:51:17.415Z (over 1 year ago)
- Language: TypeScript
- Size: 117 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Hapi-TS-Experiment
=====================
> Experimenting using TypeScript with Hapi## Setup
1. Run `git clone https://github.com/dustinspecker/hapi-ts-experiment` to clone the repository.
1. Run `npm i` to install dependencies.
1. Run `npm i -g tsd typescript@^1.5.0-beta` to install TSD and TypeScript.
1. Run `tsd reinstall --save` to download typings.
1. Run `tsc` to compile TypeScript.
1. Run `node server` to start the Hapi Server on port 3000.## Routes
`GET /` returns "Hello, world!"
`GET /{name}` returns "Hello, {name}!"