这是indexloc提供的服务,不要输入任何密码
Skip to content

user9227473327163/raspi-home-alexa

 
 

Repository files navigation

Alexa TypeScript Node Project

A Node.js project for building Alexa Skills using TypeScript.

Description

This project provides a foundation for developing Alexa Skills using TypeScript and Node.js. It includes the necessary setup and structure to create custom voice experiences for Amazon Alexa devices.

Prerequisites

  • Node.js (v14 or higher)
  • npm or yarn
  • Amazon Developer Account

Installation

npm install

Configuration

Copy .env to .env.local and fill the values:

ALEXA_SKILL_ID=<alexa skill id>

Development

npm run build     # Compile TypeScript
npm run start     # Start the application
npm run test      # Run tests

Exposing

Expose local server to the internet using ngrok.

ngrok http 3000

Using in Alexa console

To alexa console use test tab to make some request:

open tex's raspi home | <skill invoke name>

This will open the alexa skill and than you can send some command:

turn on the device

Project Structure

alexa-ts-node/
├── src/
│   └── index.ts
├── tests/
├── dist/
├── package.json
└── tsconfig.json

Contributing

  1. Fork the repository
  2. Create your feature branch
  3. Commit your changes
  4. Push to the branch
  5. Create a Pull Request

License

This project is licensed under the MIT License.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 71.3%
  • Shell 14.1%
  • JavaScript 11.1%
  • Dockerfile 3.5%