Skip to content

Commit 48720e2

Browse files
committed
Additional improvements to the README (#6)
1 parent 603633a commit 48720e2

File tree

1 file changed

+40
-55
lines changed

1 file changed

+40
-55
lines changed

README.md

Lines changed: 40 additions & 55 deletions
Original file line numberDiff line numberDiff line change
@@ -6,74 +6,59 @@
66
[![Join Slack](https://img.shields.io/badge/join-slack-9B69A0.svg)](https://nimbella-community.slack.com/)
77
[![Twitter](https://img.shields.io/twitter/follow/nimbella.svg?style=social&logo=twitter)](https://twitter.com/intent/follow?screen_name=nimbella)
88

9-
A Netlify Build Plugin that extends Netlify Sites with support for portable and stateful serverless functions using [Nimbella Cloud](https://nimbella.com/product/platform).
9+
A Netlify Build Plugin that extends Netlify Sites with support for portable and stateful serverless functions using [Nimbella](https://nimbella.com/product/platform). The add-on enables Netlify developers to deploy serverless functions and stateful APIs to the Nimbella cloud 1) with more programming language choices, 2) easier packaging, 3) customizable runtimes and durations, and 4) cloud portability.
1010

1111
Learn more about Nimbella's integration for Netlify from [here](https://nimbella.com/integrations/netlify).
1212

13-
- [Setup](#setup)
14-
- [New to Nimbella](#New-to-Nimbella)
15-
- [Existing Nimbella User](#Existing-Nimbella-User)
16-
- [Inputs](#inputs)
13+
- [Add-On Setup](#add-on-setup)
14+
- [New to Nimbella](#new-to-nimbella)
15+
- [Existing Nimbella User](#existing-nimbella-developer)
16+
- [Minimal Netlify TOML Configuration](#minimal-netlify-toml-configuration)
1717
- [Usage](#usage)
18-
- [Use Nimbella Projects with Netlify Sites](#Use-Nimbella-Projects-with-Netlify-Sites)
19-
- [Deploy Netlify Functions on Nimbella Cloud](#Deploy-Netlify-Functions-on-Nimbella-Cloud)
18+
- [Use Nimbella Projects with Netlify Sites](#use-nimbella-projects-with-netlify-sites)
19+
- [Deploy Netlify Functions on Nimbella Cloud](#deploy-netlify-functions-on-nimbella-cloud)
2020
- [Examples](#examples)
2121
- [Support](#support)
2222
- [License](#license)
2323

24-
## Setup
24+
## Add-On Setup
2525

26-
> **Note:** Build Plugins are not available on the legacy "Ubuntu Trusty 14.04" build image. Update your Netlify build image to "Ubuntu Xenial 16.04".
26+
> **Note:** Netlify Build Plugins are not available on the legacy "Ubuntu Trusty 14.04" build image. Update your Netlify build image to "Ubuntu Xenial 16.04".
2727
2828
### New to Nimbella
2929

30-
Use Netlify addon `nimbella` to connect your Netlify site to Nimbella.
31-
32-
1. **Add the Nimbella Add-on for Netlify**
33-
34-
Run the below at the base of your local project directory linked to your Netlify site.
35-
36-
```sh
37-
$ netlify addons:create nimbella
38-
```
39-
The addon will create a namespace where your resources reside. You can claim the namespace by running `netlify addons:auth nimbella`.
40-
41-
2. **Add Nimbella Build Plugin to Your Netlify Site**
42-
43-
Append the below to your `netlify.toml`.
44-
45-
```toml
46-
[[plugins]]
47-
package = "netlify-plugin-nimbella"
48-
```
30+
Add the Nimbella add-on for Netlify to connect your Netlify site to Nimbella.
31+
To do that, run the following command from the base of your local project directory which is linked to your Netlify site.
32+
```sh
33+
netlify addons:create nimbella
34+
```
4935

50-
### Existing Nimbella User
36+
The addon will create a Nimbella namespace where your resources are allocated. Your Nimbella namespace includes your serverless functions, a dedicated key-value store, and access to an integrated object store.
5137

52-
Existing users need to create a Netlify Build environment variable so the plugin can deploy the resources under their account. Follow the steps below to use your existing account with the plugin.
38+
You may claim the namespace and login to your Nimbella account by running `netlify addons:auth nimbella`.
5339

54-
1. **Create Netlify Build Environment Variable**
40+
### Existing Nimbella Developer
5541

56-
Make sure you have the [Nimbella CLI `nim`](https://nimbella.io/downloads/nim/nim.html) installed. You can do that from the CLI web page or by visiting [`nimbella.com/login`](https://nimbella.com/login) to login.
42+
You can use the Nimbella add-on for Netlify with your existing Nimbella account. This is accomplished by creating a Netlify Build environment variable so the plugin can deploy the resources to the Nimbella namespace of your choosing.
5743

58-
Generate a token using the CLI by running the following command:
59-
```bash
60-
nim auth export --non-expiring
61-
```
44+
1. You will need to you the [Nimbella CLI `nim`](https://nimbella.io/downloads/nim/nim.html) or the [Nimbella Workbench](https://nimbella.io/wb) to export a login token to run the command shown below. If you want to sign up for a free Nimbella account or to login, visit [`nimbella.com/login`](https://nimbella.com/login)) to get started.
6245

63-
Next, visit [`https://app.netlify.com/sites/<your-site-name>/settings/deploys#environment`](https://app.netlify.com/sites/<your-site-name>/settings/deploys#environment) to create an environment variable named `NIMBELLA_LOGIN_TOKEN` with your the token you just obtained.
46+
```sh
47+
nim auth export --non-expiring
48+
```
6449

65-
2. **Add Nimbella Build Plugin to Your Netlify Site**
50+
2. Next, visit [`https://app.netlify.com/sites/<your-site-name>/settings/deploys#environment`](https://app.netlify.com/sites/<your-site-name>/settings/deploys#environment) to create an environment variable named `NIMBELLA_LOGIN_TOKEN` and provide the the token you just obtained as its value.
6651

67-
Append the below to your `netlify.toml`.
52+
### Minimal Netlify TOML Configuration
6853

69-
```toml
70-
[[plugins]]
71-
package = "netlify-plugin-nimbella"
72-
```
54+
Once your add-on is configured, you need to add the Nimbella Build Plugin to Your Netlify Site. This is done by appending the section below to your `netlify.toml` file.
7355

74-
## Inputs
56+
```toml
57+
[[plugins]]
58+
package = "netlify-plugin-nimbella"
59+
```
7560

76-
This section describes the possible inputs that the plugin can accept.
61+
You may provide additional configuration in the `netlify.toml` file to configure the resources available to your serverless functions, or to configure the API path for your functions. Here is an example.
7762

7863
```toml
7964
[nimbella]
@@ -85,15 +70,15 @@ path = "/.netlify/functions/" # The prefix path to access your deployed packages
8570

8671
## Usage
8772

88-
Learn how to structure your repository and `netlify.toml` for this plugin to deploy your functions on Nimbella Cloud.
73+
In this section, you will learn how to structure your repository and `netlify.toml` for this plugin to deploy your functions on Nimbella Cloud.
8974

9075
#### Use Nimbella Projects with Netlify Sites
9176

92-
> Learn about Nimbella projects [here](https://nimbella.io/downloads/nim/nim.html#overview-of-nimbella-projects-actions-and-deployment)
77+
The Nimbella add-on for Netlify allows you to use [Nimbella projects](https://nimbella.io/downloads/nim/nim.html#overview-of-nimbella-projects-actions-and-deployment) to automate packaging and deployment. We suggest reading the documentation about [Nimbella projects](https://nimbella.io/downloads/nim/nim.html#overview-of-nimbella-projects-actions-and-deployment) at some point. We provide a quick introduction here.
9378

94-
All we need is a directory named `packages` at the base of your repository. The plugin will automatically deploy the packages inside `packages` and will also create redirect rules so all requests to `/.netlify/functions/*` will be redirected to functions (actions) deployed on Nimbella.
79+
Nimbella projects inspect a directory named `packages` at the base of your repository. The contents of this directory dictate the serverless functions that are deployed. The plugin will automatically deploy the functions inside `packages` and will also create redirect rules so all requests to `/.netlify/functions/*` are redirected to functions (also called actions) deployed on Nimbella.
9580

96-
For example, let's imagine the following structure:
81+
For example, for the following project structure:
9782

9883
```
9984
site
@@ -111,9 +96,9 @@ site
11196
└── index.html
11297
```
11398

114-
To invoke the function `login`, we would make a request to `https://your-site.com/.netlify/functions/auth/login` (i.e. we need to prefix the package name `auth` to invoke the function `login`.)
99+
You will invoke the function `auth/login.js` via the API end point `https://your-site.com/.netlify/functions/auth/login`.
115100

116-
If you're using Netlify Functions, you need to change the base prefix `/.netlify/functions/` to something different (e.g. `/api/`) in `netlify.toml` so Netlify Functions can be accessed using `/.netlify/functions/` route and Nimbella Functions can be accessed using `/api/` route.
101+
If you're using Netlify Functions, you need to change the base prefix `/.netlify/functions/` to something different (e.g. `/api/`) in `netlify.toml` so Netlify Functions can be accessed using `/.netlify/functions/` and Nimbella Functions can be accessed using `/api/` route.
117102

118103
```toml
119104
[nimbella]
@@ -143,15 +128,15 @@ All enviroment variables present in the build runtime during Netlify build (exce
143128

144129
These are few sites that use `netlify-plugin-nimbella` to deploy frontend content to Netlify and functions on Nimbella.
145130

146-
- [`netlify-plugin-nimbella.netlify.app`](https://github.com/nimbella/netlify-plugin-nimbella.netlify.app)
147-
- [`netlify-nimbella-faunadb.netlify.app`](https://github.com/nimbella/netlify-faunadb-example)
148-
- [`netlify-nimbella-ocr.netlify.app`](https://github.com/nimbella/netlify-nimbella-ocr)
131+
- [A "hello world" example](https://github.com/nimbella/netlify-plugin-nimbella.netlify.app)
132+
- [Combining Netlify with Nimbella and Fauna](https://github.com/nimbella/netlify-faunadb-example)
133+
- [Optical character recognition using Nimbella key-value and object stores](https://github.com/nimbella/netlify-nimbella-ocr)
149134

150135
Look at `netlify.toml` of these repositories to get an idea on how the plugin is used.
151136

152137
## Support
153138

154-
We're always happy to help you with any issues you encounter. You may want to [join our Slack community](https://nimbella-community.slack.com) to engage with us for a more rapid response.
139+
We're always happy to help you with any issues you encounter. You may want to [join our Slack community](https://nimbella-community.slack.com) to engage with us for a more rapid response. Otherwise, open an issue and provide us with details about your situation so we can respond adequately.
155140

156141
## License
157142

0 commit comments

Comments
 (0)