Skip to content

Simple quick-start Rust project for use with DevSpace

License

Notifications You must be signed in to change notification settings

ThomasK33/devspace-quickstart-rust

Repository files navigation

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 web framework and runs inside a Kubernetes cluster managed by kind or k3d.

Table of Contents

Requirements

How to Use

  1. Clone the repository:

    git clone https://github.com/ThomasK33/devspace-quickstart-rust.git
    cd devspace-quickstart-rust
  2. Run the local development environment:

    just run
  3. Within the devspace container, run:

    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:

    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.

Contact

Thomas Kosiewski - [email protected]

Project Link: https://github.com/ThomasK33/devspace-quickstart-rust