npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

backand

v2.3.2

Published

Command line interface for Backand cloud services - Online backend REST API as a service

Downloads

85

Readme

Backand CLI

A CLI Tool for Backand.

Install

$ npm install -g backand

Usage

Notice: Run backand help to see available commands

Pick the appropriate section below for the command you need.

Note that you should use these commands from a folder in which your user has write access. The SDK creates some maintenance and intermediary files and folders as it works, which can be problematic if the user does not have sufficient permission.

Register / Login to Backand

To create an account with Backand, run the following command:

$ backand signup

You will be prompted for your new account details, but you can also provide them as arguments to the signup call. You can pull the list from the tool's "help" function.

Once you have a user, you can sign in using:

$ backand signin

You will be prompted for your account email, password, and app name to authenticate with.

After successful login, your access token will be stored in a file locally, and you'll be able to make use of the more powerful CLI commands.

Managing Actions and Functions

You can use the CLI to manage all of the Server-Side Node.JS functions and actions in your application. To manage actions, use the following set of commands:

Action commands

  • Creates a new action
$ backand action init
  • Debugs an action locally (from within the action folder)
$ npm debug.js
  • Deploys an action
$ backand action deploy

Function commands

  • Creates a new function
$ backand function create
  • Deploys a function
$ backand function deploy
  • Deletes a function
$ backand function delete
  • Runs a function
$ backand function run

Using Backand CLI Commands in Shell Script

All commands can be run non-interactively in a shell script by supplying their parameters on the command line. Here is an example script that fetches a list of objects, creates an action, creates a function, then syncs with the server:

$ backand get --master <masterapptoken> --user <userapptoken> --app <appName> --object <objectName>
$ backand action init --object <object> --action <actionname>    
$ backand function init --name <functionName>
$ backand sync

Deploying an AngularJS 2 Project with the CLI

In order to use Backand hosting, you need to set the base href of the project when building your app. Do this as follows:

ng build --base-href /appName/

Simply replace "appName" with the name of your app in Backand, and you are ready to go!

Updating backand

Checking for updates on each command slows down cli apps a lot. Hence, backand won't check for updates automatically. You can easily install updates at your leisure using NPM:

$ npm update -g backand

You can also simply re-install the tool:

$ npm install -g backand

Testing

To run the CLI's suite of unit tests, clone the repo and run the following commands:

$ cd backand-cli
$ npm install
$ npm test

Learn More

You can find more info on the Backand CLI in our documentation

License

MIT Licensed

Copyright (c) 2015, Backand

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sub-license, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.