Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/charlesread/fastify-example

Simple fastify example
https://github.com/charlesread/fastify-example

Last synced: 12 days ago
JSON representation

Simple fastify example

Awesome Lists containing this project

README

        

This is a laughably simple fastify example, used mostly in testing my containerized computing stacks.

## Running the Node app directly

```bash
$ git clone [email protected]:charlesread/fastify-example.git
$ cd fastify-example/src
$ npm i
$ node index.js
$ curl :8080 # in another shell
# ==> {"address":"192.168.0.64","date":"2018-07-15T13:10:31.534Z"}
```

## Running the Node app in the supplied Docker container

```bash
$ git clone [email protected]:charlesread/fastify-example.git
$ cd fastify-example
$ ./run.sh
$ curl localhost:8080 # in another shell
# ==> {"address":"192.168.0.64","date":"2018-07-15T13:10:31.534Z"}
```