GithubHelp home page GithubHelp logo

truthiswill / apl-client-library Goto Github PK

View Code? Open in Web Editor NEW

This project forked from alexa/apl-client-library

0.0 0.0 0.0 1.26 MB

License: Apache License 2.0

CMake 2.52% C++ 91.75% HTML 1.52% JavaScript 3.17% C 1.04%

apl-client-library's Introduction

Alexa Presentation Language (APL) Client Library

Introduction

The APL Client Library provides communication between APLViewhostWeb and apl-core-library. Its job is making sure that APL Documents are correctly rendered and getting updated based on user's interaction.

The APL Client Library package in this GitHub repo includes:

  • The APL Client Library
  • A sandbox that enables users to test APL Client Library's functionalities
  • apl-client-js: APLViewhostWeb

The APL Client Library depends on the following additional GitHub repos:

Installation

Prerequisites

  • cmake - the easiest way to install on Mac is using brew install cmake
  • Asio - the easiest way to install on Mac is using brew install asio
  • websocketpp - fetched in CMake if FETCH_CONTENT flag is set to ON

Sandbox Installation Steps

  1. Clone the necessary repos in your working directory
    git clone https://github.com/alexa/apl-client-library.git
    git clone https://github.com/zaphoyd/websocketpp.git
    git clone git://github.com/alexa/apl-core-library.git
    
  2. Build apl-core
    cd apl-core-library
    source ./apl-dev-env.sh
    apl-build-core
    cd ..
    
  3. Configure CMake in your working directory
    WORK_AREA=$(pwd)
    mkdir build
    cd build
    
    cmake ${WORK_AREA}/apl-client-library \
    -DWEBSOCKETPP_INCLUDE_DIR=${WORK_AREA}/websocketpp \
    -DCMAKE_BUILD_TYPE=DEBUG \
    -DAPLCORE_INCLUDE_DIR=${WORK_AREA}/apl-core-library/aplcore/include \
    -DAPLCORE_BUILD_INCLUDE_DIR=${WORK_AREA}/apl-core-library/build/aplcore/include \
    -DYOGA_INCLUDE_DIR=${WORK_AREA}/apl-core-library/build/yoga-prefix/src/yoga \
    -DAPLCORE_RAPIDJSON_INCLUDE_DIR=${WORK_AREA}/apl-core-library/build/rapidjson-prefix/src/rapidjson/include/ \
    -DAPLCORE_LIB_DIR=${WORK_AREA}/apl-core-library/build/aplcore \
    -DYOGA_LIB_DIR=${WORK_AREA}/apl-core-library/build/lib \
    -DAPLCORE_BUILD=${WORK_AREA}/apl-core-library/build \
    -DAPL_CORE=ON \
    -DBUILD_TESTING=OFF \
    -DSANDBOX=ON \
    -DSTANDALONE=ON
    
  4. Build apl-client
    make
    
  5. Run sandbox server
    cd $WORK_AREA/build/APLClientSandbox/src
    ./APLClientSandbox
    
  6. Open another terminal to run sandbox GUI
    cd $WORK_AREA/apl-client-library/APLClientSandbox/GUI
    npm install
    npm start
    
  7. Open localhost:8000 in your browser

Security

See CONTRIBUTING for more information.

License

This project is licensed under the Apache-2.0 License.

apl-client-library's People

Contributors

amazon-auto avatar mattkai1 avatar robsterthelobster 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.