Skip to content

Easily testable and working Rust codes with blog posts to explain them.

License

Notifications You must be signed in to change notification settings

cedrickchee/Rust-Full-Stack

 
 

Repository files navigation

Donate

How to be a full stack Rust Developer

Test codes here or read the Rust blog posts at Steadylearner. You can also send me a direct message or make an issue here etc. I will help you.

If you need a developer who can deploy web projects with Docker and AWS, please contact me. I can work with Rust, JavaScript, Python, Docker, AWS etc.

Rust full stack chat app

The reason to use this repository

  1. Rust is fast and strongly typed language with many benefits.
  2. But, it takes long time to compile. You can't be sure your code will satisfy the compiler or not.
  3. Therefore, use the examples here as your starting points.

Everything is simple with examples but it is not easy to make them with Rust.

You can make an issue if you want him to spend time to make more examples to help other Rust developers.

I like to challenge with a new technology and share code.

You can also help me to have better equipment and better internet connection with donation.

Start

First, clone this repository with

$git clone https://github.com/steadylearner/Rust-Full-Stack.git

Prepare Rust development environment with How to install Rust if you haven't yet.

Then, use one of these commands.

  1. $./install.sh in web folder and $./run-local.sh for a full stack Rust chat app.
  2. $cd static_files && $cargo run --release for JavaScript frontend and Rust server side web app.
  3. $cd JSON_Webservice && $./run-local.sh for YouTube vlog example with JSON Webservice.
  4. $cd yew/rust_blog && $./install.sh && yarn watch:rs for a Rust blog example.
  5. $cd React_Rust to test a React app with Warp, Rocket, Actix, Express, Restify, Django, Golang, Vibora etc.
  6. $cd sitemap if you want to build sitemap automatically with a database.

You can like and share it with others if you want more contents similar to them.

Install and Deploy Rust

  1. How to install Rust
  2. How to deploy Rust Web App

Docker and AWS

Docker and Rust by Steadylearner

  1. How to use Docker commands
  2. How to use Docker with Rust

Warp

  1. How to use Rust Warp
  2. Use it with React single page app.
  3. CRUD REST API example with a database integration.

Frontend

NPM and Rust by Steadylearner

  1. How to use Rust Yew
  2. How to use a modal in Rust
  3. How to use routers in Rust Frontend
  4. How to modulize your Rust Frontend
  5. How to use NPM packages with Rust Frontend
  6. How to use markdown with Rust Frontend

Server

Rust equivalent server and client code

  1. How to use Rust Tera for undefined paths
  2. How to make Rust JSON Webservice with YouTube API
  3. How to use CORS and OPTIONS HTTP request with Rust Rocket
  4. How to serve static files with Rust
  5. How to use a single page app with Rust
  6. How to use gRPC with Rust Tonic and Postgresql database
  7. How to use React with Rust Actix

Full Stack

Rust Router Example

  1. Rust Chat App
  2. Fullstack Rust with Yew
  3. How to write Full Stack Rust code
  4. How to render a YouTube vlog with Rust Yew fetch API
  5. How to render blog posts with Rust Yew mounted API

Sitemap

Sitemaps with Rust

  1. How to build a static sitemap.xml with Rust
  2. How to build a sitemap.xml with dynamic contents in Rust
  3. How to build a sitemap for images with Rust
  4. How to automate building sitemaps with Rust

Web Scrapers

  1. How to use Python Scrapy to crawl This Week in Rust
  2. Working code of Webscraping with Rust

Selenium

  1. How to use Rust thirtyfour to scrap React app

Blog

  1. Python Blog with posts saved at GitHub
  2. Visit Steadylearner or read blog posts at GitHub

No need for a database because the posts are saved at GitHub. Others can also easily contribute to blog posts with its features.

Email

  1. Rust lettre CLI example with email templates and an attachment
  2. Email REST API JSON webserivce server with Express and Mongoose

Microservices(CWD)

You can find microservices examples built with Warp, Tonic, Postgresql, Redis. The mongodb, Actix, Rocket example will be included also.

  1. gRPC Warp client and Tonic server with Postgresql and Redis Wrapper

Resume

You can find easily testable projects at Resume repository. If you are an employer, ask me to upload some projects there or here.

I can deploy them with a single command to AWS.

What you will learn with it

The most of the codes here is relevant to Rust. But, you can find the example codes of JavaScript, Python, Golang, Docker, some databases etc. I collect codes I can share to this repository.

  1. How to use HTML, CSS and Markdown in Rust Frontend
  2. How to include NPM packages and JavaScript modules in it
  3. How to use Rust Yew
  4. How to write components and organize the Rust project
  5. How to build complete Full Stack Rust Web Application
  6. How to modulize your Rust project
  7. How to deploy it
  8. How to write sitemaps and metatags for it

Interesting Projects

This is where I save the projects that I thought interesting.

Contact

Send messages with them if you need an immediate help.

  1. LinkedIn
  2. Twitter

How to contribute

I am not a native speaker so there will be grammatical or type errors. You can help me to correct them.

You can suggest your code instead of deprecated ones, imporve existing codes or ask the author to include your projects.

There is no versioning here because I upload only projects working and reusable enough.

The current state of this repository

The author decided to spend his time with crypto, p2p and other low level programming with Golang and Rust.

Warning

I do what I want here. Most of the projects here are throwaway code but somehow become useful when they are grouped.

  1. This is a personal repository.
  2. Don't treat this public before you seriously speak with the author about that.

Could you find errors? You are better programmers with fast machines and internet. Commit here to help others or code on.

Releases

No releases published

Packages

No packages published

Languages

  • Rust 73.1%
  • CSS 11.0%
  • Go 10.4%
  • HTML 2.9%
  • Python 1.6%
  • TSQL 0.3%
  • Other 0.7%