-
Notifications
You must be signed in to change notification settings - Fork 1
Get Started
Welcome to AirPPT. Easier to say AirPowerPoint :)
Powerpoint's simple drag and drop interface makes it easy to prototype and demonstrate UIs. However, we have to startover in "real" code when we begin implementing our UI.
AirPPT lets you go from slideshow canvas to functional UI using Powerpoint as a WYSISYG editor. It's also designed to be extensible!
This guide shows you how to take a slideshow and convert a slide to html. You'll use the AirPPT CLI tool.
Before you begin, make sure your development environment includes Node.js®
and an npm package manager.
Airppt requires Node.js
-
To check your version, run
node -v
in a terminal/console window. -
To get
Node.js
, go to nodejs.org.
Angular, the Angular CLI, and Angular apps depend on features and functionality provided by libraries that are available as npm packages. To download and install npm packages, you must have an npm package manager.
This Quick Start uses the npm client command line interface, which is installed with Node.js
by default.
To check that you have the npm client installed, run npm -v
in a terminal/console window.
You use the AirPPT CLI to point to a slideshow and generate a UI or debug the output of a renderer.
Install the AirPPT CLI globally.
To install the CLI using npm
, open a terminal/console window and enter the following command:
npm install -g airppt
You can download a sample powerpoint with some basic slides here.
Not all powerpoint shapes are supported yet. A list of supported elements can be found [here]. However, you can write your own shape renderer
You can generate the HTML and CSS using the CLI tool
-
Navigate to the same directory as the powerpount (
apps.pptx
). -
Run the command
airppt -i ./sample.pptx --slide 1 -o ./mypage
- Navigate to the
mypage
directory and openindex.html
- You can also reuse the output to build a working application.
Read the getting started with Electron
to get started.
AirPPT is a work in progress. Not all shapes nor cases are accounted for. I've tried my best to call out a few of the limitations here and the shapes that are supported.
The framework is designed to be extensible so that you can add back your own shapes and custom elements. Here are instructions and building your own renderer to implement a shape.
How to build your own renderer
Go to the next page ss