Coder Social home page Coder Social logo

atirek89 / delivery-driver-app-demo Goto Github PK

View Code? Open in Web Editor NEW

This project forked from aws-samples/delivery-driver-app-demo

0.0 1.0 0.0 1.14 MB

A simple website that demonstrates Amazon Chime proxy phone sessions

License: MIT No Attribution

JavaScript 54.67% Vue 45.33%

delivery-driver-app-demo's Introduction

Delivery Driver App Demo

A simple website that demonstrates Amazon Chime proxy phone sessions

Getting Started

Prerequisites

  • AWS CLI - AWS Command Line Interface

Installing


Step 1. Clone this repository and install the dependancies

  • 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

Step 2. Create an Amazon Chime Voice Connector

  • 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"

Step 3. Install the Serveless Framework

To install the Serverless Framework run the following command:

npm install -g serverless

Step 4. Configure the application

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


Step 5. Deploy Application

  • 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!

Built With

  • NuxtJS - The ProgressiveVue.js Framework
  • Buefy - Lightweight UI components for Vue.js based on Bulma

Authors

  • Marcello Federico

License

This project is licensed under the MIT License - see the LICENSE.md file for details

delivery-driver-app-demo's People

Contributors

amazon-auto avatar aws-mafederi avatar dependabot[bot] avatar devalevenkatesh avatar ridipde avatar vidya-mohan avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.