Skip to content

Commit

Permalink
Added server-client-adapter
Browse files Browse the repository at this point in the history
  • Loading branch information
CSantosM committed Jan 17, 2024
1 parent 0955d71 commit 00eeaf1
Show file tree
Hide file tree
Showing 18 changed files with 2,959 additions and 0 deletions.
1 change: 1 addition & 0 deletions server-client-adapter/.dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
docker/
129 changes: 129 additions & 0 deletions server-client-adapter/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,129 @@
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
lerna-debug.log*
.pnpm-debug.log*

# Diagnostic reports (https://nodejs.org/api/report.html)
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json

# Runtime data
pids
*.pid
*.seed
*.pid.lock

# Directory for instrumented libs generated by jscoverage/JSCover
lib-cov

# Coverage directory used by tools like istanbul
coverage
*.lcov

# nyc test coverage
.nyc_output

# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
.grunt

# Bower dependency directory (https://bower.io/)
bower_components

# node-waf configuration
.lock-wscript

# Compiled binary addons (https://nodejs.org/api/addons.html)
build/Release

# Dependency directories
node_modules/
jspm_packages/

# Snowpack dependency directory (https://snowpack.dev/)
web_modules/

# TypeScript cache
*.tsbuildinfo

# Optional npm cache directory
.npm

# Optional eslint cache
.eslintcache

# Optional stylelint cache
.stylelintcache

# Microbundle cache
.rpt2_cache/
.rts2_cache_cjs/
.rts2_cache_es/
.rts2_cache_umd/

# Optional REPL history
.node_repl_history

# Output of 'npm pack'
*.tgz

# Yarn Integrity file
.yarn-integrity

# dotenv environment variable files
.env.development.local
.env.test.local
.env.production.local
.env.local

# parcel-bundler cache (https://parceljs.org/)
.cache
.parcel-cache

# Next.js build output
.next
out

# Nuxt.js build / generate output
.nuxt
dist

# Gatsby files
.cache/
# Comment in the public line in if your project uses Gatsby and not Next.js
# https://nextjs.org/blog/next-9-1#public-directory-support
# public

# vuepress build output
.vuepress/dist

# vuepress v2.x temp and cache directory
.temp
.cache

# Docusaurus cache and generated files
.docusaurus

# Serverless directories
.serverless/

# FuseBox cache
.fusebox/

# DynamoDB Local files
.dynamodb/

# TernJS port file
.tern-port

# Stores VSCode versions used for testing VSCode extensions
.vscode-test

# yarn v2
.yarn/cache
.yarn/unplugged
.yarn/build-state.yml
.yarn/install-state.gz
.pnp.*
30 changes: 30 additions & 0 deletions server-client-adapter/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# openvidu-basic-node

This is a minimal OpenVidu server application sample built for Node with Express. Visit [Application server](https://docs.openvidu.io/en/stable/application-server/) documentation for further context.

It internally uses [openvidu-node-client SDK](https://docs.openvidu.io/en/stable/reference-docs/openvidu-node-client/).

## Prerequisites

- [Node](https://nodejs.org/es/download/)

## Run

Download repository

```
git clone [email protected]:OpenVidu/openvidu-tutorials.git
cd openvidu-tutorials/openvidu-basic-node
```

Install dependencies

```
npm install
```

Run the application

```
node index.js
```
21 changes: 21 additions & 0 deletions server-client-adapter/cert.crt
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
-----BEGIN CERTIFICATE-----
MIIDYzCCAkugAwIBAgIUSJnmkkEmh+0atJVpWdo6SG7etC8wDQYJKoZIhvcNAQEL
BQAwQTEaMBgGA1UEAwwRZGVtby5tbG9wc2h1Yi5jb20xCzAJBgNVBAYTAlVTMRYw
FAYDVQQHDA1TYW4gRnJhbnNpc2NvMB4XDTIzMTAyMzIwMzg0NVoXDTI0MTAxMzIw
Mzg0NVowQTEaMBgGA1UEAwwRZGVtby5tbG9wc2h1Yi5jb20xCzAJBgNVBAYTAlVT
MRYwFAYDVQQHDA1TYW4gRnJhbnNpc2NvMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8A
MIIBCgKCAQEA5v/rLh6BEvjCs7h4ur7oQsAd52fWa4kO2b60SDFc7wjYNCF4XDwz
rQMoU7yNKwMgdrx4L5p66nYoBBa3yBvwbBl/f8kfkLbfrw6UPKCM08V8Dl6P3v5M
pU0WwFiBTVpXkxQXqS+ENw2wFwxKfrG13qsPUb2KEvymkcKlcfBd9ZPjEY7Qfjby
EGdkLaqMs7uOAj3Wdex7aRHZIOmSGqVtImzNQFp9cI/XutzBF8YlhMPkmlZNh8R/
cMBTzNhqku/uLwnQy0p584XXL5g5UNdmEM50cIo4ivwNkzn5lw0ernlcEjLxYN3k
MZVJC/CqgGxe/T8H+Kzfm68uDGtnxDZqpQIDAQABo1MwUTAdBgNVHQ4EFgQU3B3l
Bx8lnMwHzXzVGvJwC7d1c4kwHwYDVR0jBBgwFoAU3B3lBx8lnMwHzXzVGvJwC7d1
c4kwDwYDVR0TAQH/BAUwAwEB/zANBgkqhkiG9w0BAQsFAAOCAQEAYYzK083XX2CE
N/tjUqMEGYJghGAIeBrSL6FsP/ItTJu8vI5n5bKDU+fCZsjmwmnBwW3HRIJf1K3W
MMEXanItbkwvbcEf8ITqMFV57z+1MY8vuTAKw9D+50mJvENzAjJVI02d3FJMHntI
hbbYPvP2yh43jtQ/3iqpGnKl5POh8SZ5kJ3Hwa2NTqkmshOm1Vcmwx8BWWnL7zv5
7ftRaGVblf0vB7i3RayFDfc8x9tCMzn8/yIJni/jMHG1J+FTlh9zjq0DQcmE7jBn
OkWF+yVzQKeb6jEB9lFo8pjlKPqkoGbd9iarzKEd1ylcIAa7ljNSFNudNa3TrFwZ
djaPkMMi+Q==
-----END CERTIFICATE-----
28 changes: 28 additions & 0 deletions server-client-adapter/cert.key
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
-----BEGIN PRIVATE KEY-----
MIIEvAIBADANBgkqhkiG9w0BAQEFAASCBKYwggSiAgEAAoIBAQDm/+suHoES+MKz
uHi6vuhCwB3nZ9ZriQ7ZvrRIMVzvCNg0IXhcPDOtAyhTvI0rAyB2vHgvmnrqdigE
FrfIG/BsGX9/yR+Qtt+vDpQ8oIzTxXwOXo/e/kylTRbAWIFNWleTFBepL4Q3DbAX
DEp+sbXeqw9RvYoS/KaRwqVx8F31k+MRjtB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zy7+48jA5qbsfPnZBmK8S8nexQftvkzjzb6IeBX5WjByKX/Qd1eq
ffspVQtW4I2f2Mj1NgVDrMN8hs8zBmatl/rB/OUy8ngMkJvJGwYjMkitavuXYHn0
cAYl+anwlRJzk/smpWJ4hMkfHO3/CTj6IuUwV1kCgYBSFlBKzFCZYXp94olyngMM
YOtA9sIChVm5EUSGHGTrVvTC10VV1NcNFocumpvn6eyVXgOQT4PbrFhDiL8ihd4M
RM7fylmC1JRbtk4hJW2sK7+z1ecKv4KZDkyHREhAC/nJO2wKc3aWqOfGUa1wBruB
bChXAObhJQ6O8XY4KsdCyQ==
-----END PRIVATE KEY-----
3 changes: 3 additions & 0 deletions server-client-adapter/config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
export const API_KEY = process.env.API_KEY || 'devkey';
export const API_SECRET = process.env.API_SECRET || 'secret';
export const LIVEKIT_URL = process.env.LIVEKIT_URL || 'ws://localhost:7880';
Loading

0 comments on commit 00eeaf1

Please sign in to comment.