example of a full stack web app (backend and frontend) wrtiten in Rust

Overview

rust-fullstack-example

An example of creating a full stack web application (backend and frontend) using Rust.

Backend

Go to ./backend and start the server using make dev.

Frontend

Go to ./frontend and start a local server on port 8080 using make web

You can create owners and for each owner, on their detail page, create pets and delete them.

You might also like...
Actix Web is a powerful, pragmatic, and extremely fast web framework for Rust.

Actix Web is a powerful, pragmatic, and extremely fast web framework for Rust.

A Rust GraphQL system with full support for subscriptions and authentication that works out of the box.

Diana is a GraphQL system for Rust that's designed to work as simply as possible out of the box, without sacrificing configuration ability.

Sauron is an html web framework for building web-apps. It is heavily inspired by elm.
Sauron is an html web framework for building web-apps. It is heavily inspired by elm.

sauron Guide Sauron is an web framework for creating fast and interactive client side web application, as well as server-side rendering for back-end w

Hot reload static web server for deploying mutiple static web site with version control.

SPA-SERVER It is to provide a static web http server with cache and hot reload. 中文 README Feature Built with Hyper and Warp, fast and small! SSL with

Code template for a production Web Application using Axum: The AwesomeApp Blueprint for Professional Web Development.

AwesomeApp rust-web-app More info at: https://awesomeapp.dev/rust-web-app/ rust-web-app YouTube episodes: Episode 01 - Rust Web App - Course to Produc

Rust Axum Full Course code.

Rust Axum Full Course source code. YouTube Full Course: https://youtube.com/watch?v=XZtlD_m59sM&list=PL7r-PXl6ZPcCIOFaL7nVHXZvBmHNhrh_Q MIT OR Apache,

Heavy Metal Leptos Stack with Tailwind, Axum, Sqlite, and Cargo Leptos

Heavy Metal Stack Leptos stack with Axum, TailwindCSS, and Sqlite This example creates a basic todo app with an Axum backend that uses Leptos' server

The goal of this repository is to have a real world template of a Rust backend using Axum, Diesel, etc.

Axum Diesel Real-World Example A modular Rust backend template based on the Domain-Driven Design (DDD) architecture, utilizing the Axum and Diesel fra

Rust Rest API Stack with User Management
Rust Rest API Stack with User Management

A secure-by-default rest api stack implemented with hyper, tokio, bb8 and postgres. This project is focused on providing end-to-end encryption by default for 12-factor applications. Includes a working user management and authentication backend written in postgresql with async S3 uploading for POST-ed data files.

Comments
  • Dockerfile

    Dockerfile

    Can anyone come up with a Dockerfile to run this? The Dockerfile in the linked article on blog.logrocket was no help. I get an errror saying it can't find the backend Cargo.toml when I run it.

    opened by anthony81799 1
  • How to run on Windows 10?

    How to run on Windows 10?

    I installed GnuWin32 and MinGW on Windows, then run "make dev" command for backend --> it run OK. But when I try with "make web" command for frontend, it shown err:

    C:\Projects\Rust\rust_fullstack_exp\frontend>make web 'RUSTFLAGS' is not recognized as an internal or external command, operable program or batch file. make: *** [web] エラー 1

    opened by tuandesu 1
  • The reference of foreign key in `db.sql`?

    The reference of foreign key in `db.sql`?

    CREATE TABLE IF NOT EXISTS owner
    (
        id SERIAL PRIMARY KEY NOT NULL,
        name VARCHAR(255) NOT NULL
    );
    
    CREATE TABLE IF NOT EXISTS pet
    (
        id SERIAL PRIMARY KEY NOT NULL,
        owner_id INT NOT NULL,
        name VARCHAR(255) NOT NULL,
        animal_type VARCHAR(255) NOT NULL,
        color VARCHAR(255),
    
        CONSTRAINT fk_pet_owner_id FOREIGN KEY (owner_id) REFERENCES pet(id)     # pet(id) -> owner(id)
    );
    
    opened by Jedsek 0
Owner
mario
mario
A simple authentication flow using Rust and Actix-web, with a PostgreSQL database and a sveltekit frontend.

Rust-auth-example This repository aims to represent a simple authentication flow using Rust and Actix-web, with a PostgreSQL database and a sveltekit

Kival Mahadew 4 Feb 19, 2023
Reference implementation of a full-stack Rust application

Full-stack Rust with WebAssembly Look Ma, No JavaScript !!! My very first Rust project (implementation of the "Connect 5" game), I used as a learning

Vassil 64 Dec 27, 2022
Perseus is a blazingly fast frontend web development framework built in Rust with support for major rendering strategies

Perseus is a blazingly fast frontend web development framework built in Rust with support for major rendering strategies, reactivity without a virtual DOM, and extreme customizability

arctic_hen7 1.2k Jan 8, 2023
A GUI frontend in Rust based on web-view

neutrino I am not working anymore on this project. If you want to become a maintainer of neutrino, please answer to this issue. Preamble Docs | Repo |

null 287 Nov 25, 2022
A full-featured and easy-to-use web framework with the Rust programming language.

Poem Framework A program is like a poem, you cannot write a poem without writing it. --- Dijkstra A full-featured and easy-to-use web framework with t

Poem Web 2.2k Jan 6, 2023
Implementation of the RealWorld backend API spec in Actix, Rust's powerful actor system and most fun web framework.

Actix codebase containing real world examples (CRUD, auth, advanced patterns, etc) that adheres to the RealWorld spec and API. ❗ (2021/05/13) This cod

Allen 475 Jan 2, 2023
Quick demo of a REST frontend with a Redis session store.

axum-rest-starter-example Important Tasks Ensure session UUID is unique Protect /api/ with JWT Add CSRF CORS? Dev Setup (1) Run docker compose up to f

Michael de Silva 23 Dec 31, 2022
puppy is an example implementation of a tiny Web browser for educational purposes.

An example implementation of a tiny Web browser for educational purposes.

Takashi Yoneuchi 580 Dec 28, 2022
yeenserve is a web app for serving random photos.

yeenserve yeenserve is a simple web app written in Rust that serves random images from a directory. It was written as the backing application for hyen

Mystic 3 Nov 30, 2022
Turn any web page into a desktop app (but, lightweight <1MB)

Intro Turn any web page into a desktop app (but, lightweight <1MB) The bundle will be less than 2MB Demo: https://i.imgur.com/BLr03oF.mp4 Install carg

null 9 Dec 27, 2022