Skip to content

Commit a00c98e

Browse files
committed
Add links to Stackhero pages
1 parent ee49c84 commit a00c98e

File tree

1 file changed

+16
-3
lines changed

1 file changed

+16
-3
lines changed

README.md

+16-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,17 @@
1-
# Mercure Hub: getting started
1+
# Mercure-Hub: getting started
2+
3+
## How to send data from Node.js to Mercure-Hub and receive them in the browser
4+
5+
You can find here some examples of Node.js code to send data to a Mercure-Hub server.
6+
7+
These examples are designed to run with a Stackhero Mercure-Hub service.
8+
You'll more informations about Stackhero here:
9+
- [Mercure-Hub cloud](https://www.stackhero.io/en/services/Mercure-Hub/benefits)
10+
- [Mercure-Hub pricing](https://www.stackhero.io/en/services/Mercure-Hub/pricing)
11+
- [Mercure-Hub documentations](https://www.stackhero.io/en/services/Mercure-Hub/documentations)
12+
13+
14+
## How to use
215

316
![Screenshot](./screenshot.png)
417

@@ -7,14 +20,14 @@ First you have to create a Mercure Hub service on Stackhero.
720
In Stackhero's configuration, allow "anonymous subscribers" to let the client connect to topics without authentication.
821

922

10-
## Front end
23+
### Front end
1124

1225
In `frontend/susbcriber.html`, fill the `endpoint` (domain name of Stackhero's service).
1326

1427
Then open the file `susbcriber.html` in your browser.
1528

1629

17-
## Back end
30+
### Back end
1831

1932
Fill the configuration informations in `backend/.env-example` and rename the file to `.env`.
2033
Then start the server with `npm run start`.

0 commit comments

Comments
 (0)