This guide covers how to get up and running with Litexa.
After reading this guide you'll know:
✔ How to generate a new Litexa project
✔ The anatomy of a Litexa project
✔ How to run, modify, and test your code
✔ How to deploy your code
✔ Where you can go to learn more about Litexa
# What is Litexa?
Litexa is both a framework and a language for writing Alexa skills. The framework lets you define, test, and deploy your language model, your skill handler, and any associated assets. The language is a convenient domain-specific language (DSL) that allows you to focus on the logic and presentation of your skill over utility code to interact with Alexa.
Wait, why do I need Node.js?
While you could write your skill solely in the Litexa language, it is not meant to be general purpose. In fact, you'll often want to incorporate external code and dependencies alongside your skill logic in Litexa.
# Guide Assumptions
The primary way you'll interact with Litexa will be through the command-line; it would also be helpful to be comfortable with command-line interface (CLI) tooling.
- Operating Systems: We know that the following operating
systems work fine, but any OS that runs the supported
version of Node.js is a candidate.
- Mac OS - Sierra, High Sierra, Mojave
- Windows 10 x64
- Linux - Ubuntu (14, 16, 18)
- Node.js version 10.x or higher
# Installation Steps
Litexa is a command line utility that is installed as a global npm package. To install the CLI run:
npm install -g @litexa/core
From then on, you should be able to invoke the
litexa command from anywhere on your machine.
Many of the examples in this guide are shown in a unix-style terminal. If there are any significant differences between operating systems we'll call them out.