Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/daveshanley/asyncapi-tutorials
Looking to get started with AsyncAPI, React, WebSockets and Go? This set of code, specs and guides should get you started
https://github.com/daveshanley/asyncapi-tutorials
asyncapi asyncapi-schemas asyncapi-specification go golang javascript pubsub react stompwebsocket websocket
Last synced: 13 days ago
JSON representation
Looking to get started with AsyncAPI, React, WebSockets and Go? This set of code, specs and guides should get you started
- Host: GitHub
- URL: https://github.com/daveshanley/asyncapi-tutorials
- Owner: daveshanley
- Created: 2021-11-26T19:02:17.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2022-01-24T22:44:40.000Z (almost 3 years ago)
- Last Synced: 2024-10-04T18:46:22.018Z (about 1 month ago)
- Topics: asyncapi, asyncapi-schemas, asyncapi-specification, go, golang, javascript, pubsub, react, stompwebsocket, websocket
- Language: Go
- Homepage:
- Size: 317 KB
- Stars: 7
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# AsyncAPI Tutorials
This code accompanies articles on [quobix.com](https://quobix.com). If you would like to gain full context behind this code and learn more about the tooling it uses, then check out the following articles.
- [How to build a React based pub-sub client using WebSockets and JavaScript](https://quobix.com/articles/react-pubsub-websockets/)
- [How to create an event-driven API via AsyncAPI using golang](https://quobix.com/articles/asyncapi-pubsub-using-golang/)
- [How to create a streaming AsyncAPI microservice using golang](https://quobix.com/articles/asyncapi-streaming-using-golang/)## First check out the repo
`git clone https://github.com/daveshanley/asyncapi-tutorials.git`
---
## Stock Ticker React UI Example Quickstart
1. Change directory to the stock ticker example.
`cd asyncapi-tutorials/stock-ticker`
2. Install all dependencies.
`npm install`
3. Run the application.
`npm start`
4. Open your browser and try it out!
`http://localhost:3000`
---
## Streaming Example Quickstart
1. Change directory to the streaming example.
`cd asyncapi-tutorials/streaming`
2. Boot the server and service.
`go run server/server.go`
3. Open a new terminal window and run the client and watch a stream of 10 random words appear, one every second
`go run client.go`
> make sure you stop the server process before trying other examples.
---
## Pub-Sub Example Quickstart
1. Change directory to the pub-sub example.
`cd asyncapi-tutorials/pub-sub`
2. Boot the server and service.
`go run server/server.go`
3. Open a new terminal window and run the client. Enjoy your terrible joke.
`go run client.go`