guimauveb / rust-app-aws

Minimal Rust web application ready to be deployed on a AWS EC2 instance.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Notes

Code that goes along with this article

This is a complete article about how to deploy a Rust web application on an AWS EC2 instance using a classic backend/frontend structure. It's derived from my own experience building my own website using the same tools and having a great time doing so.

This application is made of a WebAssembly frontend displaying articles retrieved from an API. The purpose of the article is to show how to build and deploy a minimal yet complete full stack Rust web application from a local machine to a web server.

Frameworks used

  • Backend

    • Actix
    • Postgres
    • Diesel
  • Frontend

    • Yew

Running the application

Backend

From backend/

cargo run

or if you want hot reload with cargo-watch:

cargo watch -x 'run backend

Frontend

From frontend/

trunk serve

About

Minimal Rust web application ready to be deployed on a AWS EC2 instance.


Languages

Language:Rust 85.7%Language:PLpgSQL 6.2%Language:Shell 5.6%Language:HTML 2.0%Language:CSS 0.6%