Skip to content

Commit ba172bc

Browse files
linter, code clean
1 parent c9c8562 commit ba172bc

File tree

15 files changed

+2618
-406
lines changed

15 files changed

+2618
-406
lines changed

.editorconfig

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
root = true
2+
3+
[*]
4+
charset = utf-8
5+
end_of_line = lf
6+
indent_size = 2
7+
indent_style = space
8+
insert_final_newline = true
9+
trim_trailing_whitespace = true
10+
11+
[vcbuild.bat]
12+
end_of_line = crlf
13+
14+
[Makefile]
15+
indent_size = 8
16+
indent_style = tab
17+
18+
[{deps}/**]
19+
charset = unset
20+
end_of_line = unset
21+
indent_size = unset
22+
indent_style = unset
23+
trim_trailing_whitespace = unset
24+
25+
[{test/fixtures,deps,tools/node_modules,tools/gyp,tools/icu,tools/msvs}/**]
26+
insert_final_newline = false

.eslintrc.json

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
"env": {
3+
"browser": true,
4+
"commonjs": true,
5+
"es2021": true,
6+
"node": true
7+
},
8+
"extends": [
9+
"airbnb-base"
10+
],
11+
"parserOptions": {
12+
"ecmaVersion": 12
13+
},
14+
"rules": {
15+
}
16+
}

.gitignore

Lines changed: 118 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,118 @@
1+
certs
2+
3+
# Logs
4+
logs
5+
*.log
6+
npm-debug.log*
7+
yarn-debug.log*
8+
yarn-error.log*
9+
lerna-debug.log*
10+
11+
# Diagnostic reports (https://nodejs.org/api/report.html)
12+
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json
13+
14+
# Runtime data
15+
pids
16+
*.pid
17+
*.seed
18+
*.pid.lock
19+
20+
# Directory for instrumented libs generated by jscoverage/JSCover
21+
lib-cov
22+
23+
# Coverage directory used by tools like istanbul
24+
coverage
25+
*.lcov
26+
27+
# nyc test coverage
28+
.nyc_output
29+
30+
# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
31+
.grunt
32+
33+
# Bower dependency directory (https://bower.io/)
34+
bower_components
35+
36+
# node-waf configuration
37+
.lock-wscript
38+
39+
# Compiled binary addons (https://nodejs.org/api/addons.html)
40+
build/Release
41+
42+
# Dependency directories
43+
node_modules/
44+
jspm_packages/
45+
46+
# Snowpack dependency directory (https://snowpack.dev/)
47+
web_modules/
48+
49+
# TypeScript cache
50+
*.tsbuildinfo
51+
52+
# Optional npm cache directory
53+
.npm
54+
55+
# Optional eslint cache
56+
.eslintcache
57+
58+
# Microbundle cache
59+
.rpt2_cache/
60+
.rts2_cache_cjs/
61+
.rts2_cache_es/
62+
.rts2_cache_umd/
63+
64+
# Optional REPL history
65+
.node_repl_history
66+
67+
# Output of 'npm pack'
68+
*.tgz
69+
70+
# Yarn Integrity file
71+
.yarn-integrity
72+
73+
# dotenv environment variables file
74+
.env
75+
.env.test
76+
77+
# parcel-bundler cache (https://parceljs.org/)
78+
.cache
79+
.parcel-cache
80+
81+
# Next.js build output
82+
.next
83+
out
84+
85+
# Nuxt.js build / generate output
86+
.nuxt
87+
dist
88+
89+
# Gatsby files
90+
.cache/
91+
# Comment in the public line in if your project uses Gatsby and not Next.js
92+
# https://nextjs.org/blog/next-9-1#public-directory-support
93+
# public
94+
95+
# vuepress build output
96+
.vuepress/dist
97+
98+
# Serverless directories
99+
.serverless/
100+
101+
# FuseBox cache
102+
.fusebox/
103+
104+
# DynamoDB Local files
105+
.dynamodb/
106+
107+
# TernJS port file
108+
.tern-port
109+
110+
# Stores VSCode versions used for testing VSCode extensions
111+
.vscode-test
112+
113+
# yarn v2
114+
.yarn/cache
115+
.yarn/unplugged
116+
.yarn/build-state.yml
117+
.yarn/install-state.gz
118+
.pnp.*

README.md

Lines changed: 18 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -41,13 +41,21 @@ However you may use self-signed Certificate to run this application locally. The
4141
* https://www.sslchecker.com/csr/self_signed
4242
* https://www.akadia.com/services/ssh_test_certificate.html
4343

44-
As you have Certificate or created a Self-Signed Certificate, create a directory "certs" under your Sample Web App Directory. Copy your Certificate files (.key and .crt files) to this directory.
44+
The following can also be used to create a self-signed certificate.
45+
```javascript
46+
cd Video-Conferencing-Open-Source-Web-Application-Sample
47+
cd server
48+
mkdir certs
49+
sudo openssl req -x509 -newkey rsa:4096 -keyout ./certs/example.key -out ./certs/example.crt -days 10000 -nodes
50+
sudo chmod 755 ./certs/example.*
51+
cd ..
52+
```
4553

4654
#### 3.1.3 Configure
4755

4856
Before you can run this application, configure the service by editing `server/vcxconfig.js` file to meet project requirement:
4957
```javascript
50-
vcxconfig.SERViCE = {
58+
vcxconfig.SERVICE = {
5159
name: "EnableX Sample Web App", // Name of the Application [Change optional]
5260
version: "1.0.0", // Version [Change optional]
5361
path: "/v1", // Route [Default /v1]
@@ -57,9 +65,9 @@ Before you can run this application, configure the service by editing `server/vc
5765
};
5866

5967
vcxconfig.Certificate = {
60-
ssl_key: "../certs/yourdomain.key", // Use the certificate ".key" [self signed or registered]
61-
ssl_cert : "../certs/yourdomain.crt", // Use the certificate ".crt" [self signed or registered]
62-
sslCaCerts : ["../cert/yourdomain.ca-bundle"] // Use the certificate CA[chain] [self signed or registered]
68+
ssl_key: "certs/example.key", // Use the certificate ".key" [self signed or registered]
69+
ssl_cert : "certs/example.crt", // Use the certificate ".crt" [self signed or registered]
70+
sslCaCerts : '' // Use the certificate CA[chain] [self signed or registered]
6371
};
6472

6573
vcxconfig.SERVER_API_SERVER = {
@@ -79,6 +87,11 @@ Run `npm install --save` to build the project and the build artifacts will be st
7987

8088
Run `node server.js` inside `server` folder for starting your Server.
8189

90+
```javascript
91+
cd server
92+
node server.js
93+
```
94+
8295
#### 3.2.2 Test
8396

8497
* Open a browser and go to [https://yourdomain.com:4443/](https://yourdomain.com:4443/). The browser should load the App.

files/users.htpasswd

Lines changed: 0 additions & 1 deletion
This file was deleted.

initExample

Lines changed: 0 additions & 3 deletions
This file was deleted.

logs/app.log

Lines changed: 0 additions & 48 deletions
This file was deleted.

0 commit comments

Comments
 (0)