Giter Site home page Giter Site logo

mrgravity817 / ushaaa Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 105 KB

An experimental HATEOAS web template for savvy Rust developers.

Rust 15.12% Dockerfile 0.85% Shell 6.03% HTML 78.00%
alpinejs axum docker flyio htmx rust surrealdb hateoas askama unocss

ushaaa's Introduction

USHAAA stack

USHAAA is my preferred stack for developing web apps with Rust.

I'm still doing experiments with this template, so please use it at your own risk.

What does "USHAAA" stand for?

  • UnoCSS, as a lightweight CSS with superpowers
  • SurrealDB, as a multi-purpose database
  • Htmx, for building a hypermedia-driven app
  • Alpine, to get a bit of power to manipulate clientside state
  • Axum, as a backend library
  • Askama, for easy templating in Rust project

Well, for now, I will use the name USHAAA, but I cannot promise that I'll still stick to this name once I switch some of the tools inside the stack.

Prerequisites

Docker & Docker Compose

This template uses Docker primarily for managing both local and remote infrastructure.

The instructions to install Docker for each platform can be found here. For installing Docker Compose, here.

Fly.io account & flyctl

I've found that Fly.io is currently the easiest platform to deploy Dockerized apps.
If you don't have a Fly.io account, head to their website and create one.

You'll also need to install flyctl, which is a CLI tool for managing Fly.io apps.
The instruction to install flyctl for each platform can be found here.

Once you installed it, run this command to log in to your Fly.io account.

$ fly auth login

cargo-watch

For live-reloading your source code, install cargo-watch.

$ cargo install cargo-watch

Local Development

First you should run SurrealDB. Run this script.

$ ./scripts/local_db.sh up

# The command above will use "surreal" as default DB user & password.
# To provide custom user & password, run
# $ SURREAL_USER=<custom user> SURREAL_PASS=<custom password> ./scripts/local_db.sh up

local_db.sh accepts up or down option.
When you want to stop database, replace the command above with down options.

Deployment

TODO: Add description

ushaaa's People

Contributors

mrgravity817 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.