/layar-api-app

Layar API App

Primary LanguageTypeScriptApache License 2.0Apache-2.0

Vyasa Analytics Demo

The demo project showcases features available from the Vyasa API. You can learn more about the Vyasa API here. Documentation for API endpoints is located here.

Live Demo

This demo project is running live at https://vyasa.com/demo/

Running The Demo Yourself

The demo project is a web application built using Google's Angular framework.

Authentication

You'll need a client id and secret to make requests of the Vyasa API. You can obtain these values by creating a Vyasa API account here. Simply register for an account, or log into an existing account, and click the Generate New API Access Keys button. Once you have a client id and secret, you'll need to modify the environment.ts file, setting your client id and secret for the oauthClientId and oauthClientSecret variables.

export const environment = {
    ...
    oauthClientId: '__CLIENT_ID__',            // your client id here
    oauthClientSecret: '__CLIENT_SECRET__',    // your secret here
};

Install Dependencies and Start The Application

At this point, you can use npm to install dependencies and start the application. Once the application has launched, navigate to localhost:4200 to view the demo application.

npm install
npm start

Example Components

We've created a number of example components, located in the example folder. Here you'll find a component dedicated to each of the main features being showcased in the demo project. You'll also find the LayarService, which is where you can find examples of the specific API requests that the example components are making.

What's Next?

The license for this project is located here. Feel free to modify and extend this demo application or build your own! You can reach us with any questions at hello@vyasa.com.