Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/dancastillo/fastify-sse-example


https://github.com/dancastillo/fastify-sse-example

Last synced: about 1 month ago
JSON representation

Awesome Lists containing this project

README

        

# Example Fastify SSE Node.js Endpoint

## Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.

### Prerequisites

What things you need to install the software and how to install them:

```js
nodejs >= 20
```

### Installing

A step-by-step series of examples that tell you how to get a development environment running:

Clone the repository:

```bash
git clonehttps://github.com/dancastillo/fastify-sse-example
cd fastify-sse-example
```

### Install dependencies:

```bash
npm install
```

### Run server

```bash
node index.js

```

### Hit the SSE Endpoint

```bash
curl http://localhost:3000/events
```