Skip to content

Instantly share code, notes, and snippets.

@robertohuertasm
Last active July 1, 2023 14:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save robertohuertasm/5c0ec70b9f5f9928bd3c4c91f28accbd to your computer and use it in GitHub Desktop.
Save robertohuertasm/5c0ec70b9f5f9928bd3c4c91f28accbd to your computer and use it in GitHub Desktop.
Prerequisites

Prerequisites

In order to start the workshop there are a few things that we will have to install or set up.

Rust

If you don't have Rust installed in your machine yet, please follow these instructions.

Visual Studio Code

You can use whatever IDE you want but we're going to use Visual Studio Code as our code editor.

If you're going to use Visual Studio Code as well, please install the following extensions:

Shuttle

This is the tool and platform that we're going to use to deploy our backend (api & database).

You can follow this installation guide or just do:

cargo install cargo-shuttle

Dioxus

Dioxus is the framework that we're going to use to build our frontend.

Be sure to install the Dioxus CLI:

cargo install dioxus-cli

After that, make sure the wasm32-unknown-unknown target for Rust is installed:

rustup target add wasm32-unknown-unknown

Docker

We will also need to have Docker installed in order to deploy locally while we're developing the backend.

DBeaver

We will use DBeaver to connect to the database and run queries. Feel free to use any other tool that you prefer.

cargo-watch

We will also use cargo-watch to automatically recompile our backend when we make changes to the code.

cargo install cargo-watch

cargo-make

Finally, let's install cargo-make:

cargo install cargo-make

We're going to leverage cargo-make to run all the commands that we need to run in order to build and deploy our backend and frontend.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment