Skip to content

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

Notifications You must be signed in to change notification settings

guimauveb/rust-app-aws

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published