https://github.com/thomask33/devspace-quickstart-rust
Simple quick-start Rust project for use with DevSpace
https://github.com/thomask33/devspace-quickstart-rust
devspace kubernetes remote-development remote-development-container remote-development-environment rust
Last synced: 3 months ago
JSON representation
Simple quick-start Rust project for use with DevSpace
- Host: GitHub
- URL: https://github.com/thomask33/devspace-quickstart-rust
- Owner: ThomasK33
- License: mit
- Created: 2023-01-31T13:01:20.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-08-08T11:35:34.000Z (almost 2 years ago)
- Last Synced: 2025-01-23T19:18:41.926Z (5 months ago)
- Topics: devspace, kubernetes, remote-development, remote-development-container, remote-development-environment, rust
- Language: Just
- Homepage:
- Size: 16.6 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# devspace-quickstart-rust
This is a simple quick-start Rust project for use with DevSpace.
It's a minimal web application that uses the [axum](https://crates.io/crates/axum) web framework and runs inside a Kubernetes cluster managed by [kind](https://kind.sigs.k8s.io/) or [k3d](https://k3d.io/).## Table of Contents
- [Requirements](#requirements)
- [How to Use](#how-to-use)
- [Justfile Commands](#justfile-commands)
- [License](#license)## Requirements
- [Rust](https://www.rust-lang.org/tools/install)
- [DevSpace](https://devspace.sh/cli/docs/getting-started/installation)
- [just](https://github.com/casey/just)
- [kind](https://kind.sigs.k8s.io/docs/user/quick-start/#installation) or [k3d](https://k3d.io/#installation)## How to Use
1. Clone the repository:
```sh
git clone https://github.com/ThomasK33/devspace-quickstart-rust.git
cd devspace-quickstart-rust
```2. Run the local development environment:
```sh
just run
```3. Within the devspace container, run:
```sh
cargo run
```4. Access the application at: `http://localhost:3000`.
5. When you're done, exit the devspace containerd and stop the local development environment:
```sh
just stop
```## Justfile Commands
- `just run`: Runs the local development environment.
- `just stop`: Stops the local development environment.
- `just create-kind`: Creates a local kind cluster.
- `just delete-kind`: Deletes the local kind cluster.
- `just create-k3d`: Sets up a local k3d cluster and registry.
- `just delete-k3d`: Deletes the local k3d cluster and registry.
- `just dev`: Runs devspace in Kubernetes cluster.
- `just purge`: Purges devspace deployment.## License
This project is licensed under the [MIT License](https://opensource.org/licenses/MIT).
## Contact
Thomas Kosiewski -
Project Link: