Basic CRUD with rust using tide - front-end with tera

This page summarizes the projects mentioned and recommended in the original post on dev.to

Our great sponsors
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • WorkOS - The modern identity platform for B2B SaaS
  • SaaSHub - Software Alternatives and Reviews
  • handlebars-rust

    Rust templating with Handlebars

  • Tera is a templating engine, inspired by Jinja2 and Django. There are other options like handlerbars and askama, but in this case I prefer to use tera because I'm familiarized with the syntax.

  • askama

    Type-safe, compiled Jinja-like templates for Rust

  • Tera is a templating engine, inspired by Jinja2 and Django. There are other options like handlerbars and askama, but in this case I prefer to use tera because I'm familiarized with the syntax.

  • InfluxDB

    Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.

    InfluxDB logo
  • tera

    A template engine for Rust based on Jinja2/Django

  • Tera is a templating engine, inspired by Jinja2 and Django. There are other options like handlerbars and askama, but in this case I prefer to use tera because I'm familiarized with the syntax.

  • tide-tera

  • First we need to add the deps we need, in this case we will using tera and tide-tera, the last one exposes an extension trait that adds two functions tera:

  • tide-morth-example

    An example application using mongodb rust tide and handlebars A.K.A MoRTH stack

  • The front-end of this app is inspired on this example app that use skeleton css and we will use that framework too. So we will need to serve some static files.

  • tide-basic-crud

    Basic CRUD api using Rust / Tide / Sqlx / Postgresql

  • Now we need a way to consume our api for persists the dinos, in this case we will create a minimal api client with javascript fetch since we are focused now in how to integrate tera and tide and not in the front-end. You can check the minimal client api in the PR.

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts