This project shows how to implement a simple Video Chat application using serverless technologies like:
- AWS Cognito for authentication;
- AWS Lambda and AWS API Gateway in the back-end;
- AWS DynamoDB as our data-store;
- React and WebRTC on the front-end;
You can get more details about this application in this blog post.
To compile the project, check if your environment has the following requirements installed:
- Install the Serverless CLI:
$ npm install -g serverless
-
Configure a AWS profile with programatic access to the AWS API with full administrator privileges. The next command will assume the profile is called
serverless
; -
Set the environment variables inside the back-end's
serverless.yml
file; -
Deploy the application to the cloud with:
$ sls deploy --aws-profile serverless
-
Configure the base URL of each back-end's endpoint inside the frontend's
env.ts
; -
Start the frontend with:
$ npm start