https://github.com/defanglabs/samples
Samples to show you how to create and deploy apps with Defang.
https://github.com/defanglabs/samples
Last synced: 9 months ago
JSON representation
Samples to show you how to create and deploy apps with Defang.
- Host: GitHub
- URL: https://github.com/defanglabs/samples
- Owner: DefangLabs
- Created: 2024-05-15T22:46:25.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2025-08-22T23:38:55.000Z (10 months ago)
- Last Synced: 2025-08-23T12:24:20.489Z (10 months ago)
- Language: Go
- Size: 12.4 MB
- Stars: 6
- Watchers: 3
- Forks: 12
- Open Issues: 112
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Defang Samples
Samples to show you how to develop, deploy, and debug cloud applications with Defang.
Browse through the [./samples](./samples) directory, or search and browse in the [docs](https://docs.defang.io/docs/samples).
## Adding Samples
To start working on a new sample, run `. ./scripts/new-sample` from the root of the repository. This will create a new sample directory, with some basic scaffolding to get you started. Look for `#REMOVE_ME_AFTER_EDITING` in your new project to look for things that you should probably be changing/checking per sample. Feel free to remove files, like `compose.dev.yaml` if they aren't necessary for your sample.
### Testing Samples
When you add a new sample, make sure to add any config vals to the `deploy-changed-samples.yml` workflow. They need to be prefixed with `TEST_` and those values need to be set in the repo secrets.