Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion get-started/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
description: >-
Comprehensive tutorials, references, example code, and more CodeCapsules
products.
cover: ../platform/.gitbook/assets/CC Docs Banner.png
cover: /broken/files/uRf9AYTumLmkgj6mLxac
coverY: 0
---

Expand Down
12 changes: 5 additions & 7 deletions get-started/SUMMARY.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,19 +17,17 @@
* [Django](backend/python/django.md)
* [Flask](backend/python/flask.md)
* [Python Discord Bot](backend/python/python-discord-bot.md)
* [Deploy a Python Telegram Bot in 5 Minutes](backend/python/python-telegram-bot.md)
* [Polling Python Telegram Bot](backend/python/polling-python-telegram-bot.md)
* [Whatsapp Bot](backend/python/whatsapp-bot.md)
* [Python Telegram Bot](backend/python/python-telegram-bot.md)
* [WhatsApp Bot](backend/python/whatsapp-bot.md)
* [Node.js](backend/node.js/README.md)
* [Express.js](backend/node.js/express.js.md)
* [Node.js Discord Bot](backend/node.js/node.js-discord-bot.md)
* [Deploy a Node.js Telegram Bot in 5 Minutes](backend/node.js/node.js-telegram-bot.md)
* [Polling Node Telegram Bot](backend/node.js/polling-node-telegram-bot.md)
* [Slack Bot](backend/node.js/slack-bot.md)
* [Node.js Telegram Bot](backend/node.js/node.js-telegram-bot.md)
* [Node.js Slack Bot](backend/node.js/slack-bot.md)
* [Java](backend/java.md)
* [Go](backend/go/README.md)
* [Go](backend/go/go.md)
* [Deploy a Go Telegram Bot in 5 Minutes](backend/go/go-telegram-bot.md)
* [Go Telegram Bot](backend/go/go-telegram-bot.md)
* [Docker](backend/docker/README.md)
* [Caddy Docker Site](backend/docker/caddy-docker-site.md)
* [Docker Laravel App](backend/docker/docker-laravel-app.md)
Expand Down
2 changes: 1 addition & 1 deletion get-started/backend/docker/caddy-docker-site.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ Log in to your Code Capsules account and navigate to the "Spaces" tab. Once ther

Follow the prompts, choosing your region and giving your Space a name, then click "Create Space".

![Create a Space](<../../.gitbook/assets/space-name (1).png>)
![Create a Space](/broken/files/c1RKSsytKv66iCGB7Ln3)

Example instructions to go with numbered annotations

Expand Down
2 changes: 1 addition & 1 deletion get-started/backend/docker/docker-laravel-app.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ Log in to your Code Capsules account and navigate to the "Spaces" tab. Once ther

Follow the prompts, choosing your region and giving your Space a name, then click "Create Space".

![Create a Space](<../../.gitbook/assets/space-name (1).png>)
![Create a Space](/broken/files/c1RKSsytKv66iCGB7Ln3)

Example instructions to go with numbered annotations

Expand Down
2 changes: 1 addition & 1 deletion get-started/backend/docker/docker-php-app.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ Log in to your Code Capsules account and navigate to the "Spaces" tab. Once ther

Follow the prompts, choosing your region and giving your Space a name, then click "Create Space".

![Create a Space](<../../.gitbook/assets/space-name (1).png>)
![Create a Space](/broken/files/c1RKSsytKv66iCGB7Ln3)

Example instructions to go with numbered annotations

Expand Down
2 changes: 1 addition & 1 deletion get-started/backend/docker/flask-docker-app.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ Log in to your Code Capsules account and navigate to the "Spaces" tab. Once ther

Follow the prompts, choosing your region and giving your Space a name, then click "Create Space".

![Create a Space](<../../.gitbook/assets/space-name (1).png>)
![Create a Space](/broken/files/c1RKSsytKv66iCGB7Ln3)

Example instructions to go with numbered annotations

Expand Down
20 changes: 10 additions & 10 deletions get-started/backend/go/go-telegram-bot.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ Follow the steps below to register a new bot with the BotFather:

The BotFather will respond with a message containing an access token for your newly created bot. This access token allows our application to:

- Access the Telegram API.
- Tell our bot what to do when receiving different messages from users.
* Access the Telegram API.
* Tell our bot what to do when receiving different messages from users.

To confirm that your bot has been created successfully, search for the bot's username. You should be able to see it and start a conversation with it. However, it won't respond because we haven't written the bot's logic yet.

Expand All @@ -40,7 +40,7 @@ Log in to your Code Capsules account and navigate to the **Spaces** tab. Then, c

Follow the prompts to choose your region and give your Space a name, then click **Create Space**.

![Create a Space](<../../.gitbook/assets/space-name (3).png>)
![Create a Space](../../.gitbook/assets/space-name.png)

Example instructions to go with numbered annotations:

Expand All @@ -66,7 +66,7 @@ Code Capsules automatically builds your application when you've finished creatin

Once your application is live, you can view the build logs by selecting the **Deploy** tab and clicking the **View build log** link in the **Builds** section.

![Build Logs](<../../.gitbook/assets/backend-capsule-build-logs (1).png>)
![Build Logs](../../.gitbook/assets/backend-capsule-build-logs.png)

## Add Environment Variables

Expand All @@ -78,9 +78,9 @@ First, name the `BOT_TOKEN` variable and enter your Telegram access token (which

Name the `URL` variable and set your bot's domain as its **Value**.

- Get the domain by clicking the Capsule's **Details** tab and copying the URL in the **Public URL** section.
- Paste the URL in the **Value** field.
- Make sure the URL ends with a `/` or the webhook will not be valid.
* Get the domain by clicking the Capsule's **Details** tab and copying the URL in the **Public URL** section.
* Paste the URL in the **Value** field.
* Make sure the URL ends with a `/` or the webhook will not be valid.

![Add a URL Environment Variable](../../.gitbook/assets/url-env-variable.png)

Expand All @@ -90,9 +90,9 @@ Confirm your changes by clicking on **Save**, then restart your Capsule by toggl

The next step is to set up a webhook for your bot:

- Click the **Public URL** link in your Capsule's **Details** tab.
- In the new tab that opens, add `/setwebhook` to the URL and press `enter`/`return` to visit the URL.
- If you see `webhook setup ok`, then your bot is ready to chat!
* Click the **Public URL** link in your Capsule's **Details** tab.
* In the new tab that opens, add `/setwebhook` to the URL and press `enter`/`return` to visit the URL.
* If you see `webhook setup ok`, then your bot is ready to chat!

## Chat with the Bot

Expand Down
4 changes: 2 additions & 2 deletions get-started/backend/node.js/express.js.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ Log in to your Code Capsules account and navigate to the "Spaces" tab. Once ther

Follow the prompts, choosing your region and giving your Space a name, then click "Create Space".

![Create a Space](<../../.gitbook/assets/space-name (1).png>)
![Create a Space](/broken/files/c1RKSsytKv66iCGB7Ln3)

Example instructions to go with numbered annotations

Expand All @@ -58,7 +58,7 @@ Code Capsules will automatically build your application when you've finished cre

Once your application is live, you can view the build log by selecting the "Deploy" tab and clicking the "View build log" link in the "Builds" section.

![Build Logs](../../../products/.gitbook/assets/backend-capsule/backend-capsule-build-logs.png)
![Build Logs](/broken/files/m10b9QRjcH8SGo8JjPp9)

Once the build is complete, a "Live Website" link will appear at the top of the tab. Click the link, and you should see your deployed application.

Expand Down
4 changes: 2 additions & 2 deletions get-started/backend/node.js/node.js-discord-bot.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ Log in to your Code Capsules account and navigate to the "Spaces" tab. Once ther

Follow the prompts, choosing your region and giving your Space a name, then click "Create Space".

![Create a Space](<../../.gitbook/assets/space-name (1).png>)
![Create a Space](/broken/files/c1RKSsytKv66iCGB7Ln3)

Example instructions to go with numbered annotations

Expand All @@ -77,7 +77,7 @@ Code Capsules will automatically build your application when you've finished cre

Once your application is live, you can view the build log by selecting the "Deploy" tab and clicking the "View build log" link in the "Builds" section.

![Build Logs](../../../products/.gitbook/assets/backend-capsule/backend-capsule-build-logs.png)
![Build Logs](/broken/files/m10b9QRjcH8SGo8JjPp9)

## Add a `TOKEN` Environment Variable

Expand Down
4 changes: 2 additions & 2 deletions get-started/backend/node.js/node.js-telegram-bot.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ Log in to your Code Capsules account and navigate to the "Spaces" tab. Once ther

Follow the prompts, choosing your region and giving your Space a name, then click "Create Space".

![Create a Space](<../../.gitbook/assets/space-name (1).png>)
![Create a Space](../../.gitbook/assets/space-name.png)

Example instructions to go with numbered annotations

Expand All @@ -61,7 +61,7 @@ Code Capsules will automatically build your application when you've finished cre

Once your application is live, you can view the build log by selecting the "Deploy" tab and clicking the "View build log" link in the "Builds" section.

![Build Logs](../../../products/.gitbook/assets/backend-capsule/backend-capsule-build-logs.png)
![Build Logs](../../.gitbook/assets/backend-capsule-build-logs.png)

## Add Environment Variables

Expand Down
82 changes: 0 additions & 82 deletions get-started/backend/node.js/polling-node-telegram-bot.md

This file was deleted.

6 changes: 3 additions & 3 deletions get-started/backend/node.js/slack-bot.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
description: A guide to deploying a Slack Bot from GitHub.
---

# Slack Bot
# Node.js Slack Bot

Deploy a Node.js Slack Bot and learn how to host backend code on Code Capsules.

Expand All @@ -20,7 +20,7 @@ Log in to your Code Capsules account and navigate to the "Spaces" tab. Once ther

Follow the prompts, choosing your region and giving your Space a name, then click "Create Space".

![Create a Space](<../../.gitbook/assets/space-name (1).png>)
![Create a Space](/broken/files/c1RKSsytKv66iCGB7Ln3)

Example instructions to go with numbered annotations

Expand All @@ -46,7 +46,7 @@ Code Capsules will automatically build your application when you've finished cre

Once your application is live, you can view the build log by selecting the "Deploy" tab and clicking the "View build log" link in the "Builds" section.

![Build Logs](../../../products/.gitbook/assets/backend-capsule/backend-capsule-build-logs.png)
![Build Logs](/broken/files/m10b9QRjcH8SGo8JjPp9)

## Register the Bot

Expand Down
4 changes: 2 additions & 2 deletions get-started/backend/python/django.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ Log in to your Code Capsules account and navigate to the "Spaces" tab. Once ther

Follow the prompts, choosing your region and giving your Space a name, then click "Create Space".

![Create a Space](<../../.gitbook/assets/space-name (1).png>)
![Create a Space](/broken/files/c1RKSsytKv66iCGB7Ln3)

Example instructions to go with numbered annotations

Expand Down Expand Up @@ -64,7 +64,7 @@ Code Capsules will automatically build your application when you’ve finished c

Once your application is live, you can view the build log by selecting the "Deploy" tab and clicking the "View build log" link in the "Builds" section.

![Build Logs](../../../products/.gitbook/assets/backend-capsule/backend-capsule-build-logs.png)
![Build Logs](/broken/files/m10b9QRjcH8SGo8JjPp9)

## Binding the Capsules

Expand Down
6 changes: 3 additions & 3 deletions get-started/backend/python/flask.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ Log in to your Code Capsules account and navigate to the "Spaces" tab. Once ther

Follow the prompts, choosing your region and giving your Space a name, then click "Create Space".

![Create a Space](<../../.gitbook/assets/space-name (1).png>)
![Create a Space](/broken/files/c1RKSsytKv66iCGB7Ln3)

Example instructions to go with numbered annotations

Expand All @@ -46,10 +46,10 @@ Code Capsules will automatically build your application when you've finished cre

Once your application is live, you can view the build log by selecting the "Deploy" tab and clicking the "View build log" link in the "Builds" section.

![Build Logs](../../../products/.gitbook/assets/backend-capsule/backend-capsule-build-logs.png)
![Build Logs](/broken/files/m10b9QRjcH8SGo8JjPp9)

Once the build is complete, a URL link will appear in the URL section in the "Details" tab. Click the link, and you should see your deployed application.

![Deployed App](<../../.gitbook/assets/cc-flask-app (1).png>)
![Deployed App](/broken/files/1wNePajKQJdeWS9jxpKN)

If you’d like to deploy another application in a different language or framework, take a look at our other [deployment guides](../../).
Loading