Skip to content

Commit

Permalink
[slackapi#710] Rename deploy examples to improve organization
Browse files Browse the repository at this point in the history
  • Loading branch information
mwbrooks authored Dec 16, 2020
1 parent 0d93eda commit 342056b
Show file tree
Hide file tree
Showing 10 changed files with 18 additions and 18 deletions.
12 changes: 6 additions & 6 deletions docs/_deployments/aws-lambda.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ redirect_from:
This guide walks you through preparing and deploying a Slack app using [Bolt for JavaScript][bolt-js], the [Serverless Framework][serverless-framework], and [AWS Lambda][aws-lambda].
</div>

When you’re finished, you’ll have this ⚡️[Getting Started with AWS Lambda app][getting-started-with-aws-lambda-app] to run, modify, and make your own.
When you’re finished, you’ll have this ⚡️[Deploying to AWS Lambda app][deploy-aws-lambda-app] to run, modify, and make your own.

---

Expand Down Expand Up @@ -158,7 +158,7 @@ module.exports.handler = (event, context) => {
};
```

When you're done, your app should look similar to the ⚡️[Getting Started with AWS Lambda app][getting-started-with-aws-lambda-app/app.js].
When you're done, your app should look similar to the ⚡️[Deploying to AWS Lambda app][deploy-aws-lambda-app/app.js].

**2. Add a serverless.yml**

Expand Down Expand Up @@ -298,7 +298,7 @@ Just like the [running the app locally](#run-the-app-locally) section, open a Sl

As you continue to build your Slack app, you'll need to deploy the updates. Let's get a feel for this by updating your app to respond to a "goodbye" message.

Add the following code to `app.js` ([source code on GitHub][getting-started-with-aws-lambda-app/app.js]):
Add the following code to `app.js` ([source code on GitHub][deploy-aws-lambda-app/app.js]):

```javascript
// Listens to incoming messages that contain "goodbye"
Expand All @@ -320,7 +320,7 @@ When the deploy is complete, you can open a Slack channel that your app has join

### Next steps

You just deployed your first ⚡️[Bolt for JavaScript app to AWS Lambda][getting-started-with-aws-lambda-app]! 🚀
You just deployed your first ⚡️[Bolt for JavaScript app to AWS Lambda][deploy-aws-lambda-app]! 🚀

Now that you've built and deployed a basic app, here are some ideas you can explore to extend, customize, and monitor it:

Expand All @@ -339,8 +339,8 @@ Now that you've built and deployed a basic app, here are some ideas you can expl
[aws-profiles]: https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-quickstart.html#cli-configure-quickstart-profiles
[aws-sign-up]: https://aws.amazon.com/
[bolt-js]: /bolt-js
[deploy-aws-lambda-app]: https://github.com/slackapi/bolt-js/tree/main/examples/deploy-aws-lambda
[deploy-aws-lambda-app/app.js]: https://github.com/slackapi/bolt-js/tree/main/examples/deploy-aws-lambda/app.js
[getting-started-guide-setting-up-events]: https://slack.dev/bolt-js/tutorial/getting-started#setting-up-events
[getting-started-guide]: /bolt-js/tutorial/getting-started
[getting-started-with-aws-lambda-app]: https://github.com/slackapi/bolt-js/tree/main/examples/getting-started-with-aws-lambda
[getting-started-with-aws-lambda-app/app.js]: https://github.com/slackapi/bolt-js/tree/main/examples/getting-started-with-aws-lambda/app.js
[serverless-framework]: https://serverless.com/
10 changes: 5 additions & 5 deletions docs/_deployments/heroku.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ redirect_from:
This guide will walk you through preparing and deploying a Slack app using [Bolt for JavaScript](/bolt-js) and the [Heroku platform](https://heroku.com/). Along the way, we’ll download a Bolt Slack app, prepare it for Heroku, and deploy it.
</div>

When you’re finished, you’ll have this ⚡️[Getting Started with Heroku app][getting-started-with-heroku-app] to run, modify, and make your own.
When you’re finished, you’ll have this ⚡️[Deploying to Heroku app][deploy-heroku-app] to run, modify, and make your own.

---

Expand Down Expand Up @@ -223,7 +223,7 @@ Open a Slack channel that your app has joined and say "hello" (lower-case). Just

As you continue building your Slack app, you'll need to deploy updates. A common flow is to make a change, commit it, and then push it to Heroku.

Let's get a feel for this by updating your app to respond to a "goodbye" message. Add the following code to `app.js` ([source code on GitHub](https://github.com/slackapi/bolt-js/blob/main/examples/getting-started-with-heroku/app.js)):
Let's get a feel for this by updating your app to respond to a "goodbye" message. Add the following code to `app.js` ([source code on GitHub](https://github.com/slackapi/bolt-js/blob/main/examples/deploy-heroku/app.js)):

```javascript
// Listens to incoming messages that contain "goodbye"
Expand Down Expand Up @@ -251,7 +251,7 @@ When the deploy is complete, you can open a Slack channel that your app has join

### Next steps

You just deployed your first ⚡️[Bolt for JavaScript app to Heroku][getting-started-with-heroku-app]! 🚀
You just deployed your first ⚡️[Bolt for JavaScript app to Heroku][deploy-heroku-app]! 🚀

Now that you've deployed a basic app, you can start exploring how to customize and monitor it. Here are some ideas of what to explore next:

Expand All @@ -260,5 +260,5 @@ Now that you've deployed a basic app, you can start exploring how to customize a
- Learn about logging in [Bolt's Advanced Concepts](/bolt-js/concepts#logging) and how to [view log messages in Heroku](https://devcenter.heroku.com/articles/getting-started-with-nodejs#view-logs).
- Get ready for primetime with [how to scale your Heroku app](https://devcenter.heroku.com/articles/getting-started-with-nodejs#scale-the-app).

[getting-started-guide]: /bolt-js/tutorial/getting-started
[getting-started-with-heroku-app]: https://github.com/slackapi/bolt-js/tree/main/examples/getting-started-with-heroku
[deploy-heroku-app]: https://github.com/slackapi/bolt-js/tree/main/examples/deploy-heroku
[getting-started-guide]: /bolt-js/tutorial/getting-started
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Getting Started with Heroku ⚡️ Bolt for JavaScript
# Deploying to Heroku ⚡️ Bolt for JavaScript

> Slack app example from 📚 [Deploying to Heroku with Bolt for JavaScript][1]
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "bolt-js-getting-started-with-heroku-app",
"name": "bolt-js-heroku-app",
"version": "1.0.0",
"description": "Getting Started with Heroku ⚡️ Bolt for JavaScript",
"description": "Deploying to Heroku ⚡️ Bolt for JavaScript",
"main": "app.js",
"scripts": {
"ngrok": "ngrok http 3000",
Expand Down
4 changes: 2 additions & 2 deletions examples/getting-started-with-aws-lambda/README.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
# Getting Started with AWS Lambda ⚡️ Bolt for JavaScript
# Deploying to AWS Lambda ⚡️ Bolt for JavaScript

> Slack app example for deploying to AWS Lambda using the Serverless Framework with Bolt for JavaScript
## Overview

This is an example app that updates the [Getting Started ⚡️ Bolt for JavaScript app][bolt-app] to be deployed to [AWS Lambda][aws-lambda] using the [Serverless Framework][serverless-framework].
You can learn how to build this example app by following our 📚 [Getting Started with AWS Lambda guide][bolt-guide-aws-lambda].
You can learn how to build this example app by following our 📚 [Deploying to AWS Lambda guide][bolt-guide-aws-lambda].

Before you begin, you may want to follow our [Getting Started guide][bolt-guide] to learn how to build your first Slack app using the [Bolt for JavaScript framework][bolt-website].

Expand Down
4 changes: 2 additions & 2 deletions examples/getting-started-with-aws-lambda/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "bolt-js-getting-started-with-aws-lambda",
"name": "bolt-js-aws-lambda",
"version": "1.0.0",
"description": "Getting Started with AWS Lambda ⚡️ Bolt for JavaScript",
"description": "Deploying to AWS Lambda ⚡️ Bolt for JavaScript",
"main": "app.js",
"scripts": {
"start": "node app.js",
Expand Down

0 comments on commit 342056b

Please sign in to comment.