Skip to content

Commit 97445e3

Browse files
avoid homepage wall-of-text
1 parent 5d5f6ff commit 97445e3

File tree

11 files changed

+155
-42
lines changed

11 files changed

+155
-42
lines changed

docs/intro.md

Lines changed: 0 additions & 34 deletions
This file was deleted.

docs/intro/_category_.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"label": "Overview",
3+
"position": 1,
4+
"collapsible": true
5+
}

docs/intro/features.mdx

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
---
2+
sidebar_position: 200
3+
title: Features
4+
description: Defang Features
5+
---
6+
7+
# Defang Features
8+
9+
Defang provides a streamlined experience to develop, deploy, observe, and update your cloud applications. Defang includes the following features:
10+
11+
- Support for [various types of applications](/docs/use-cases): Web services and APIs, mobile app backends, ML services, hosting LLMs, etc.
12+
- Support for your programming [language of choice](/docs/samples): Node.js, Python, Golang, or anything else you can package in a Dockerfile.
13+
- Built-in AI agent to go [from natural language prompt to an outline project](/docs/concepts/generate.md)
14+
- Built-in AI agent to help you [debug your cloud applications](/docs/concepts/debug.md)
15+
- Automated [Dockerfile builds](/docs/concepts/deployments.md)
16+
- Support for [pre-built Docker containers](/docs/tutorials/deploy-container-using-the-cli.mdx), from public or private image registries
17+
- Ability to express your project configuration using a [Docker Compose YAML](/docs/concepts/compose.md) file
18+
- Ability to manage [encrypted configuration values](/docs/concepts/configuration.md)
19+
- Pre-configured environments with built-in [security](/docs/concepts/security.md), [networking](/docs/concepts/networking.mdx), and [observability](/docs/concepts/observability.md)
20+
- [One-command deployments](/docs/getting-started/installing.md)
21+
- Support for [GPUs](/docs/concepts/resources.md)
22+
- Support for Infra-as-Code via the [Defang Pulumi provider](/docs/concepts/pulumi.md)

docs/intro/intro.mdx

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
---
2+
sidebar_position: 100
3+
title: Overview
4+
description: Overview of Defang, a radically simpler way to develop, deploy, and debug production-ready cloud apps.
5+
---
6+
7+
import IntroGrid from "../../src/components/IntroGrid"
8+
9+
#  
10+
11+
<div style={{textAlign: "center"}}>
12+
<img src="/img/defang-logo.svg" alt="Defang Logo" style={{width: "200px", marginBottom: "2rem"}} />
13+
<h1>Defang Documentation</h1>
14+
<p>
15+
Defang is a radically simpler way for developers to develop, deploy, and debug their cloud applications. Defang enables you to easily author cloud applications in any language, build and deploy to the cloud with a single command, and iterate quickly with AI-assisted tooling.
16+
</p>
17+
<h2>Getting Started</h2>
18+
<IntroGrid />
19+
</div>

docs/use-cases/use-cases.md renamed to docs/intro/use-cases.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
---
2-
sidebar_position: 400
2+
sidebar_position: 300
33
title: Use Cases
4-
description: Use cases for Defang.
4+
description: Use cases for Defang
55
---
66

7-
# Use Cases
7+
# Defang Use Cases
88

99
Defang can be used for a wide variety of use cases, generally in line with the [12 Factor architecture](https://12factor.net/). In this section we'll document some examples. At the end of this section we will also cover use cases that are not supported by Defang.
1010

@@ -26,18 +26,18 @@ LLMs (Large Language Models) are a type of AI model that can be used for a wide
2626

2727
# Anti-patterns
2828

29-
While Defang is great for a wide variety of use cases, there are some use cases that are not a good fit for Defang. Generally, the use-cases that are Defang anti-patterns are the same as the ones that are [12 Factor](https://12factor.net/) anti-patterns.
29+
While Defang is great for a wide variety of use cases, there are some use cases that are not a good fit for Defang. Generally, the use-cases that are Defang anti-patterns are the same as the ones that are [12 Factor](https://12factor.net/) anti-patterns.
3030

3131
## Stateful Services
3232

3333
Some applications are designed to run in stateful environments. For example, a CMS like WordPress can be coerced to work in a stateless environment, but most of the tooling for it expects to have a long-lived filesystem and a database. Defang is not a good fit for these types of applications, because [containers are ephemeral and can be replaced at any time](https://12factor.net/processes).
3434

3535
## Data Stores
3636

37-
Defang now offers support for stateful workloads through our [managed storage](./concepts/managed-storage) options, including [Postgres](./concepts/managed-storage/managed-postgres) and [Redis](./concepts/managed-storage/managed-redis) for data stores. However, we do not recommend using unsupported data stores with Defang, as this may lead to permanent data loss.
37+
Defang now offers support for stateful workloads through our [managed storage](./concepts/managed-storage) options, including [Postgres](./concepts/managed-storage/managed-postgres) and [Redis](./concepts/managed-storage/managed-redis) for data stores. However, we do not recommend using unsupported data stores with Defang, as this may lead to permanent data loss.
3838

39-
:::info
40-
To better serve our users, we will be introducing additional managed storage options, such as [Object Storage](concepts/managed-storage/managed-object-storage), in the near future.
39+
:::info
40+
To better serve our users, we will be introducing additional managed storage options, such as [Object Storage](concepts/managed-storage/managed-object-storage), in the near future.
4141
:::
4242

4343
Please be aware that if you choose not to use a Defang-supported [managed storage](./concepts/managed-storage) option, there is a risk that any data stored in a container may be lost if the container is replaced.

docs/intro/what-is-defang.mdx

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
---
2+
sidebar_position: 100
3+
title: What is Defang?
4+
description: What is Defang?
5+
---
6+
7+
# What is Defang?
8+
9+
<iframe width="560" height="315" src="https://www.youtube.com/embed/afglsBYieuc?si=iKgUX4ejz7AixxqQ" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen style={{marginBottom: "2rem"}}></iframe>
10+
11+
Defang is a radically simpler way for developers to develop, deploy, and debug their cloud applications. Defang enables you to easily author cloud application in any language, build and deploy to the cloud with a single command, and iterate quickly with AI-assisted tooling.
12+
13+
- The [Defang CLI](/docs/getting-started/installing.md) includes an AI-driven agent that translates natural language prompts to an outline for your project that you can then refine.
14+
- Defang can automatically build and deploy your project with a single command.
15+
- If you’re new to Defang, you can try deploying to the [Defang Playground](/docs/concepts/defang-playground.md), a hosted environment to learn to use Defang with non-production workloads.
16+
- Once you’re ready, you can [deploy](/docs/concepts/deployments.md) it to your own cloud account - we call this [Defang BYOC](/docs/concepts/defang-byoc.md). Defang takes care of all the heavy lifting such as configuring networking, security, [observability](/docs/concepts/observability.md) and all the other details that usually slow down the average cloud developer.
17+
- You can also use Defang to easily [publish updates](/docs/concepts/deployments.md#deploying-updates) to your deployed application with zero downtime.
Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
---
2+
title: Deploy to Playground
3+
description: Deploy to the Free Defang Playground
4+
sidebar_position: 15
5+
---
6+
7+
# Deploy to the playground
8+
9+
Go back to your shell and type the following:
10+
11+
```
12+
$ defang up
13+
```
14+
15+
If you have not used defang before, you'll be prompted to log in.
16+
17+
```
18+
! Please log in to continue.
19+
Please visit http://127.0.0.1:49154 and log in. (Right click the URL or press ENTER to open browser)
20+
```
21+
22+
:::info
23+
To learn more about how authentication works in defang, check out the [authenticating page](/docs/getting-started/authenticating).
24+
:::
25+
26+
When you do this, you should see something similar to the output below:
27+
28+
```
29+
* Uploading build context for app
30+
* Deploying service app
31+
* Monitor your services' status in the defang portal
32+
- https://portal.defang.dev/service/app
33+
* Tailing logs for deployment ID o59k89vk3qc8 ; press Ctrl+C to detach:
34+
* Press V to toggle verbose mode
35+
2024-09-19T10:50:53.572443-07:00 cd Update started for stack jordanstephens-prod1
36+
2024-09-19T10:51:05.536299-07:00 cd Update succeeded in 11.99769745s ; provisioning...
37+
2024-09-19T10:51:39.419693-07:00 app Server running at http://0.0.0.0:3000/
38+
* Service app is in state DEPLOYMENT_COMPLETED and will be available at:
39+
- https://jordanstephens-app--3000.prod1.defang.dev
40+
* Done.
41+
```
42+
43+
Now we can go to [https://portal.defang.dev/service/app](https://portal.defang.dev/service/app) to see our service listed in the defang portal.
44+
45+
![screenshot of the defang portal](/img/getting-started-portal.png)

docs/tutorials/deploy-to-your-cloud.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
title: Deploy to your cloud
2+
title: Deploy to Your Cloud
33
description: Defang allows you deploy to your own cloud account.
44
sidebar_position: 10
55
---

package-lock.json

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
"dependencies": {
1919
"@docusaurus/core": "3.0.0",
2020
"@docusaurus/preset-classic": "3.0.0",
21+
"@docusaurus/theme-common": "3.0.0",
2122
"@emotion/react": "^11.11.1",
2223
"@emotion/styled": "^11.11.0",
2324
"@mdx-js/react": "^3.0.0",

0 commit comments

Comments
 (0)