Skip to content

Rust + Rocket Backend with a React + TypeScript Frontend

Notifications You must be signed in to change notification settings

lineville/rust-rocket-react

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tech Stack

Backend

Frontend


Getting started

  • Rust + Cargo (Nightly build -- required by Rocket)

  • Diesel (can be installed using cargo)

  • Local installation of PostgreSQL with user + password with full database privileges

  • Yarn or npm

Run server locally

cd server
diesel setup
cargo run

Run client locally

cd client
yarn start

Run both server and client locally

cd client
yarn run dev

Test server

cd server
cargo test

Test client

cd client
yarn test

⚡⚡⚡Convert rust models automatically into TypeScript types!⚡⚡⚡

Modify the src/bin/typescriptify.rs file to use the model you want to use to convert to TypeScript

cd server
cargo run --bin typescriptify > ../client/src/YOUR_TYPESCRIPT_TYPE.d.ts

About

Rust + Rocket Backend with a React + TypeScript Frontend

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published