https://github.com/raphaeltm/tmp-rocket
https://github.com/raphaeltm/tmp-rocket
Last synced: 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/raphaeltm/tmp-rocket
- Owner: raphaeltm
- Created: 2024-09-20T21:25:16.000Z (8 months ago)
- Default Branch: main
- Last Pushed: 2024-09-20T21:25:18.000Z (8 months ago)
- Last Synced: 2025-03-14T22:43:15.584Z (2 months ago)
- Language: Dockerfile
- Size: 3.91 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Rocket
[1-click deploy](https://portal.defang.dev/redirect?url=https%3A%2F%2Fgithub.com%2Fnew%3Ftemplate_name%3Dsample-rocket-template%26template_owner%3DDefangSamples)
This sample demonstrates how to deploy a very simple Rocket app. Rocket is a web framework for Rust.
## Prerequisites
1. [!NOTE] Download [Defang CLI](https://github.com/DefangLabs/defang)
2. (Optional) If you are using [Defang BYOC](https://docs.aws.amazon.com/cli/latest/userguide/cli-chap-configure.html) authenticate against your AWS account
3. (Optional for local development) [Docker CLI](https://docs.docker.com/engine/install/)## Development
To run the application locally, you can use the following command:
```bash
docker compose up
```## Deployment
> [!NOTE]
> Download [Defang CLI](https://github.com/DefangLabs/defang)### Defang Playground
Deploy your application to the defang playground by opening up your terminal and typing `defang up`.
### BYOC (AWS)
If you want to deploy to your own cloud account, you can use Defang BYOC:
1. [Authenticate your AWS account](https://docs.aws.amazon.com/cli/latest/userguide/cli-chap-configure.html), and that you have properly set your environment variables like `AWS_PROFILE`, `AWS_REGION`, `AWS_ACCESS_KEY_ID`, and `AWS_SECRET_ACCESS_KEY`.
2. Run `defang up` in a terminal that has access to your AWS environment variables.---
Title: Rocket
Short Description: A simple Rocket app.
Tags: Rocket
Languages: Rust