A simple website that demonstrates Amazon Chime proxy phone sessions
- AWS CLI - AWS Command Line Interface
- Run the followning commands on the command line:
git clone https://github.com/aws-samples/delivery-driver-app-demo.git
cd delivery-driver-app-demo
npm install
- Use the AWS CLI to create the Amazon Chime Voice Connector by using the following command:
aws chime create-voice-connector --name "DeliveryDriverAppDemo" --no-require-encryption
-
Make note of the VoiceConnectorId.
-
Configure the Amzon Chime Voice Connector Proxy Session by using the following command:
aws chime put-voice-connector-proxy --voice-connector-id <VoiceConnectorId> --default-session-expiry-minutes 15 --phone-number-pool-countries "US"
To install the Serverless Framework run the following command:
npm install -g serverless
Create a secrets.json file that conatins the following JSON:
{
"SERVICE":"delivery-driver-app-demo",
"NODE_ENV": "dev",
"JWT_SECRET":"Ch^ngeM3",
"VOICE_CONNECTOR_ID": "<VoiceConnectorId>",
"API_PREFIX":"/dev"
}
-
Change the JWT_SECRET to something random and different then
Ch^ngeM3
-
Change VOICE_CONNECTOR_ID to the the ID of the Voice Connector you created in step #2
-
Export your AWS ACCESS KEY and SECERT KEY to your envoriment:
-
On the command line type the following commands:
export AWS_ACCESS_KEY_ID=<your-key-here>
export AWS_SECRET_ACCESS_KEY=<your-secret-key-here>
- On the command line deploy the project with the following command:
npm run deploy
- You should see output similar to this:
> [email protected] deploy delivery-driver-app-demo
> nuxt build && sls deploy
WARN vendor has been deprecated due to webpack4 optimization 09:46:33
ℹ Production build 09:46:35
✔ Builder initialized 09:46:35
✔ Nuxt files generated 09:46:36
✔ Client
Compiled successfully in 27.75s
✔ Server
Compiled successfully in 5.59s
.....................
.....................
.....................
Serverless: Packaging service...
Serverless: Excluding development dependencies...
Serverless: Uploading CloudFormation file to S3...
Serverless: Uploading artifacts...
Serverless: Uploading service chime-proxy-demo.zip file to S3 (74.33 MB)...
Serverless: Validating template...
Serverless: Updating Stack...
Serverless: Checking Stack update progress...
....................
Serverless: Stack update finished...
Service Information
service: deliver-driver-app-demo
stage: dev
region: us-east-1
stack: deliver-driver-app-demo-dev
resources: 22
api keys:
None
endpoints:
ANY - https://qtg531o4i7.execute-api.us-east-1.amazonaws.com/dev
ANY - https://qtg531o4i7.execute-api.us-east-1.amazonaws.com/dev/{proxy+}
ANY - https://qtg531o4i7.execute-api.us-east-1.amazonaws.com/dev/api
ANY - https://qtg531o4i7.execute-api.us-east-1.amazonaws.com/dev/api/{proxy+}
functions:
nuxt: delivery-driver-app-demo-dev-nuxt
api: delivery-driver-app-demo-dev-api
layers:
None
Make note of the main URL from the above output. It will look something like:
https://qtg531o4i7.execute-api.us-east-1.amazonaws.com/dev
Paste your URL in your browser and test!
- NuxtJS - The ProgressiveVue.js Framework
- Buefy - Lightweight UI components for Vue.js based on Bulma
- Marcello Federico
This project is licensed under the MIT License - see the LICENSE.md file for details