Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dancastillo/fastify-sse-example
https://github.com/dancastillo/fastify-sse-example
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/dancastillo/fastify-sse-example
- Owner: dancastillo
- Created: 2024-06-02T18:43:39.000Z (7 months ago)
- Default Branch: main
- Last Pushed: 2024-06-02T18:52:09.000Z (7 months ago)
- Last Synced: 2024-06-02T20:44:14.050Z (7 months ago)
- Language: JavaScript
- Size: 7.81 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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
```