/combust

Create contemporary apps in minutes

Primary LanguageJavaScript

Combust

Combust is a command line tool for rapidly creating and prototyping serverless web and mobile apps.

Installation

Due to an issue with node-gyp, we'll need to execute a funky install command.

sudo npm i -g combust --unsafe-perm --allow-root

Setting up

combust create myNewApp
cd myNewApp && npm start

Your app will take you through a setup process once launched, or you can follow along with this video.

Commands

create

combust create

args: app name (optional)

Creates a new project, you'll be prompted to choose a type (web, mobile, or dual platform)

configure

combust configure

args: firebase projectId (optional)

Sets up your project with a firebase database, if no projectId is provided, you'll be prompted to choose one from a list

install

combust install moduleTitle

args: moduleTitle (required)

Installs a combust module (this will alter your project's source code). Available modules can be found here.

generate

combust generate newModule fieldName:dataType fieldName2:dataType

args: moduleTitle (required), list of fieldName:dataType pairs (required)

valid data types: text, string, number, image, and boolean (true/false)

Generates the front-end, data store, and database code for a new feature.

Combust Generate Examples

To create a blogging platform, where blogs can have a title, a body, and a blog image, we would do something like:

combust generate blogs title:string body:text blogImage:image

To create a sports statistics tracking app, if we wanted players with stats, we could do something like:

combust generate players firstName:string lastName:string profileImg:image
bio:text age:number points:number gamesPlayed:number isActive:boolean