1.13.9 • Published 5 years ago

@bearer/security v1.13.9

Weekly downloads
-
License
MIT
Repository
github
Last release
5 years ago

Bearer - The API Integration Framework

Bearer provides all of the tools to build, run and manage API Learn more


Version License Build Status

Why

You should use Bearer if you want to:

  • Consume any API in minutes
  • Map API endpoints to your app model
  • Integrate into your code with one line
  • Deploy and Scale without fuss
  • Monitor every API call
  • Manage your integrations

Installation

# Using yarn
yarn create bearer helloWorld

# Using npm
npm init bearer helloWorld

# Using npx
npx create-bearer helloWorld

Quick Start

Follow the quick start to create your first integration.

Documentation

The documentation is available on the Bearer doc center.

Command References

The Framework comes with a Command Line Interface (CLI) providing many commands:

$ yarn bearer -h

Bearer CLI

VERSION
  @bearer/cli/rc-1

USAGE
  $ bearer [COMMAND]

COMMANDS
  autocomplete  display autocomplete installation instructions
  generate      generate function
  help          display help for bearer
  integrations  list deployed integrations
  invoke        invoke function locally
  link          link to remote Bearer integration
  login         login using Bearer credentials
  new           generate integration boilerplate
  push          deploy integration to Bearer
  setup         setup API credentials for local development
  start         start local development environment

Find below some explanation of commands by order of importance.

New

As an alternative to the yarn create bearer command, you can also use the new command:

yarn bearer new

Setup

This command help you setup your (test) API authentication credentials in local development:

yarn bearer setup:auth

Generate

The generate command provides a fast and easy way to bootstrap a function, taking care of much of the boilerplate code:

yarn bearer generate:function FunctionName

Invoke

The invoke command let you run a function directly from the console:

yarn bearer invoke FunctionName

It's a great way to test and debug a function.

You can also pass arguments, as a JSON file, to the invoke command, which are translated as params to the function:

yarn bearer invoke FunctionName -p tests/function.json
{ "params": { "fullName": "Bearer/bearer" } }

NB: The file path is relative to the integration folder.

Start

The start command provides a local Web Server to test the integration:

yarn bearer start

Behind the scene, it builds the integration (transpiling code, etc...) and manage things like live reload.

Push

The push command let you deploy your integration to the platform 🚀

yarn bearer push

Login

The login command let you connect to the platform from the CLI:

yarn bearer login

It's a required step in order to push your integration.

Link

The link command let you link an integration registered on your bearer's dashboard with your current integration code:

yarn bearer link

NB: This command is triggered automatically when you deploy an integration for the first time.

Integrations

The integrations command let list your deployed integration and also create a new one:

yarn bearer integrations
yarn bearer integrations:create

Contributing

We welcome all contributors, from casual to regular 💙

  • Bug report. Is something not working as expected? Send a bug report.
  • Feature request. Would you like to add something to the framework? Send a feature request.
  • Documentation. Did you find a typo in the doc? Open an issue and we'll take care of it.
  • Development. If you don't know where to start, you can check the open issues.

To start contributing to code, you need to:

  1. Fork the project
  2. Clone the repository
  3. Checkout the Getting Started

License

Bearer is MIT licensed.

1.13.9

5 years ago

1.13.8

5 years ago

1.13.4

5 years ago

1.7.1-canary.2

5 years ago

1.8.0-canary.2

5 years ago

1.7.0

5 years ago

1.6.8

5 years ago

1.6.2-canary-4.1

5 years ago

1.6.1

5 years ago

1.4.2-canary.17

6 years ago

1.1.0

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago

0.115.1

6 years ago

0.115.0

6 years ago

0.114.1

6 years ago

0.113.0

6 years ago

0.112.0

6 years ago

0.111.0-canary.9

6 years ago

0.111.0

6 years ago

0.111.0-canary.2

6 years ago

0.110.0

6 years ago

0.109.0

6 years ago

0.108.0

6 years ago

0.107.0

6 years ago

0.107.0-canary.1

6 years ago

0.107.0-canary.0

6 years ago

0.107.0-canary.6

6 years ago

0.106.0

6 years ago

0.106.0-canary.9

6 years ago

0.106.0-canary.5

6 years ago

0.106.0-canary.1

6 years ago

0.105.0

6 years ago

0.104.0

6 years ago

0.103.0

6 years ago

0.102.0

6 years ago

0.101.0

6 years ago

0.100.1-next.40

6 years ago

0.100.1-next.35

6 years ago

0.100.1-next.48

6 years ago

0.100.1-next.47

6 years ago

0.100.1-next.27

6 years ago

0.100.1-next.25

6 years ago

0.100.1-next.21

6 years ago

0.100.1-next.23

6 years ago

0.100.1-next.17

6 years ago

0.100.1-next.15

6 years ago

0.100.1-next.1

6 years ago

0.100.0

6 years ago

0.99.1

6 years ago

0.99.0

6 years ago

0.98.0

6 years ago

0.97.3

6 years ago

0.97.0

6 years ago

0.96.2-next.13

6 years ago

0.96.1

6 years ago

0.96.0

6 years ago

0.95.1

6 years ago

0.95.0

6 years ago

0.94.1

6 years ago

0.94.0

6 years ago

0.93.0

6 years ago

0.92.2

6 years ago

0.92.1

6 years ago

0.92.0

6 years ago

0.91.5

6 years ago

0.91.0

6 years ago

0.90.2

6 years ago

0.90.1

6 years ago

0.90.0

6 years ago

0.89.0

6 years ago

0.88.0

6 years ago

0.87.0

6 years ago

0.86.0

6 years ago

0.85.2

6 years ago

0.85.0

6 years ago

0.84.2

6 years ago

0.84.1

6 years ago

0.84.0

6 years ago

0.83.4

6 years ago

0.83.3

6 years ago

0.83.0

6 years ago

0.82.0

6 years ago