Skip to content

ApiRTC/web-guest

Repository files navigation

ApiRTC Web Guest application

Cloning a Project with Submodules

After normal clone, You must run two commands:

git submodule init

to initialize your local configuration file, and:

git submodule update

to fetch all the data from that project and check out the appropriate commit listed in the project.

Or you might clone with --recurse-submodules option.

Installation

yarn

Prerequisites

  • IDE / Code editor (VS Code recommended to use TypeScript)
  • GIT - Free and open source distributed version control system
  • NodeJS - JavaScript runtime built on Chrome's V8 JavaScript engine
  • NPM or YARN

Dependencies

This dependencies from GIT repositories are loaded as node modules from package.json

apiRTC : Go to repository
MUI React Lib : Go to repository
React Lib : Go to repository

Start local development server

If you run this repo for the first time, you will need to generate new certificates. To do this, see the regeneration command in the Certificates section.

To start the local dev server, run:

$ yarn start

Vite will start a dev server an web app will be accessible a https://localhost:3400 by default.

Certificates

If you have problem with the certificates:

  • on vite config file :
  • in the development configuration section
  • replace https: true with:
https: {
    key: fs.readFileSync(path.resolve(__dirname, '.cert/localhost.key')),
    cert: fs.readFileSync(path.resolve(__dirname, './.cert/localhost.crt')),
    ca: fs.readFileSync(path.resolve(__dirname, './.cert/RootCA.pem')),
},

On chrome program, you must add the certificate on the application preferences.
you must choose RootCA.crt on .cert directory on the root of directory.
save et relaunch program chrome

If you need to generate new certificates, please run:

yarn dev:regenerateCertificates

Release for production

yarn deploy