@disasterlogic/disasterbot
TypeScript icon, indicating that this package has built-in type declarations

0.0.4 • Public • Published

DisasterBot

A disaster remediation assistant

Terminology

Getting Started

When you first pull down the repo run the following to get the dependencies installed and open the app in the browser with live reloading.

npm install
npm start

If you wish to work on the API then run the following command:

cd functions
npm install
npm run serve

Working

When you want to work on the front-end run the following command to have it open a livereloading browser instance.

npm start

When you want to work on the back-end run the following command to have it emulate cloud functions on your local machine. (NOTE: Triggers that have to do with Auth, Firestore, and other watchers will only run on a server. HTTP(S) functions will run locally)

npm run api

Build Commands

npm run android

Runs a build with the dev environment with our custom cordova flag on the stencil compiler and then runs the app via Cordova

Read More about Cordova...


npm run api

Runs npm run serve command in functions directory to start the firebase back-end server locally.

Read More about Firebase Functions Emulator...


npm run api:test

Runs Jest test suite on the API Read More about Jest...


npm run api:test:watch

Runs Jest test suite on the API with livereloading / watcher Read More about Jest...


npm run build

Runs a stencil build with no environment

Read More about StencilJS...


npm run build:app

Runs a build with the dev environment with our custom cordova flag on the stencil compiler and then builds an android App via Cordova

Read More about Cordova...


npm run build:prerender

Runs a stencil build with no environment and the prerender flag

Read More about StencilJS Prerendering...


npm run build:stats

Runs a stencil build with no environment and the stats flag

Read More about StencilJS...


npm run copy

Copy files using enjin.copy key in package.json


npm run deploy:api

Lints the API files and auto-fixes what it can, then it runs the test suites, and finally deploys to firebase

Read More about Firebase Deploy...


npm run deploy:api:live

Lints the API files and auto-fixes what it can, then it runs the test suites, and finally deploys to live firebase

Read More about Firebase Deploy...


npm run deploy:app

Lints the app files and auto-fixes what it can, then it runs a build for the dev environment, and finally deploys to firebase

Read More about Firebase Deploy...


npm run deploy:app:live

Lints the app files and auto-fixes what it can, then it runs a build for the dev environment, and finally deploys to live firebase

Read More about Firebase Deploy...


npm run deploy:docs

Builds docs for API with APIDoc and app with TypeDoc and then deploys to firebase


npm run dev

Runs local build and serves it in browser with livesyncing via BrowserSync

Read More about BrowserSync...


npm run dev:android

Runs local build and serves it in mobile device with livereloading


npm run docs

Builds docs for API with APIDoc and app with TypeDoc


npm run docs:api

Builds docs for API with APIDoc Read More about APIDoc...


npm run docs:app

Builds docs for app with TypeDoc Read More about TypeDoc...


npm run env

Copy over proper front-end environment config into src/global/environment.ts


npm run git:prepush

Commands that Husky runs before pushing to GIT remote. Currently runs linting and a build. (NOTE: Should consider running tests in here as well) Read More about Husky...


npm run lint

Runs linting on both the API and the app using TSLint Read More about TSLint...


npm run lint:fix

Runs linting on both the API and the app using TSLint and auto-fixes anything that it can Read More about TSLint...


npm run lint:api

Runs linting on the API using TSLint Read More about TSLint...


npm run lint:api:fix

Runs linting on the API using TSLint and auto-fixes anything that it can Read More about TSLint...


npm run lint:app

Runs linting on the app using TSLint Read More about TSLint...


npm run lint:app:fix

Runs linting on the app using TSLint and auto-fixes anything that it can Read More about TSLint...


npm run serve

Alias for npm run sync


npm run start

Alias for npm run dev


npm run sync

Runs the livereloading server via BrowserSync without running a build or watching for changes. Read More about BrowserSync...


npm run test

Runs Jest test suite on the app Read More about Jest...


npm run test:watch

Runs Jest test suite on the app with livereloading / watcher Read More about Jest...


npm run test:api

Alias for npm run api:test


npm run test:api:watch

Alias for npm run api:test:watch

Readme

Keywords

none

Package Sidebar

Install

npm i @disasterlogic/disasterbot

Weekly Downloads

0

Version

0.0.4

License

none

Unpacked Size

10 MB

Total Files

885

Last publish

Collaborators

  • popcorn245