https://github.com/ludovicm67/poc-vonage
This is a proof of concept using Vonage SDK
https://github.com/ludovicm67/poc-vonage
poc proof-of-concept vonage
Last synced: 3 months ago
JSON representation
This is a proof of concept using Vonage SDK
- Host: GitHub
- URL: https://github.com/ludovicm67/poc-vonage
- Owner: ludovicm67
- Created: 2022-01-28T09:33:09.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-02-03T15:57:06.000Z (over 3 years ago)
- Last Synced: 2025-06-28T18:46:14.155Z (3 months ago)
- Topics: poc, proof-of-concept, vonage
- Language: TypeScript
- Homepage:
- Size: 133 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Vonage POC
This is a proof of concept using Vonage SDK.
## Quick start
```sh
# configure some environment variables
cp .env.example .env
vim .env # edit it using your favorite editor# install dependencies
npm install# start the project (listen to changes)
npm run dev
```And go to: http://localhost:3000/
## Concepts
The route `GET /api/session/:name` will generate an answer which will look like this:
```json
{
"name": "sessionName",
"id": "sessionId",
"token": "token",
"key": "apiKey"
}
```The `name` will get the value from `:name`.
The `sessionId` will be generated the first time a session name is called.
For the next callers, it will serve the value generated previously.A new value for `token` will be generated each time this URL is called for this session.
The `key` is simply the value of the `VONAGE_API_KEY` environment variable.
When the client is loaded, it will do a request to the route mentionned above and directly start a session call.
## Useful resources
- Vonage account overview: https://tokbox.com/account/#/
- NodeJS SDK: https://tokbox.com/developer/sdks/node/
- Basic tutorial: https://tokbox.com/developer/tutorials/web/basic-video-chat/