Skip to content

Development Setup for App / ThreeJS using Rust Rocket and Svelte

Notifications You must be signed in to change notification settings

obacht-tech/app_development

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Obacht! App Development Setup

Powered by Rocket and Svelte

Setup Diagram

Tools

Tool Language Docs Usage
Rocket Rust Rocket Docs Backend / Server
Svelte TypeScript Svelte Docs Frontend Framework / Preprocessor
Three TypeScript Three Docs WebGL Framework

Development

Make sure all languages dependencies are installed:

Language Dependencies


Rust Nightly for Rocket

Once rustup is installed, configure Rust nightly as your default toolchain by running the command:

rustup default nightly

If you prefer, once we setup a project directory in the following section, you can use per-directory overrides to use the nightly version only for your Rocket project by running the following command in the directory:

rustup override set nightly


Startup

Rocket

Start Rocket using your IDE or using cargo run. Rust has no live reloading feature. If there are any changes to the server cargo has to be restarted.

Svelte

First change to the client folder cd client

install all npm packages npm i do this before starting the backend server

Start Svelte with hot reload npm run dev

Or build Svelte once npm run build


Recommended IDEs

IDE Language
JetBrains CLion Rust
JetBrains WebStorm Svelte

CLion offers Debugging for Rust. WebStorm doesn't have this feature but is more focused on web languages. Both can be used as a single tool for everything. Other IDEs like VSCode, Sublime or Vim can also be used but are not recommended.

About

Development Setup for App / ThreeJS using Rust Rocket and Svelte

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published