Giter Site home page Giter Site logo

rust-htmx's Introduction

Rust + HTMX

Notes

  • struct internal --> to askama (template html/css)
  • struct internal --> to database (diesel ORM)
  • struct internal --> to public proto messages (for let RPC)
  • method internal --> to public proto service (for let RPC)

Builds depends

cargo install cargo-watch

Driver Sqlite3

download https://www.sqlite.org/2024/sqlite-dll-win-x64-3450100.zip

Acrimos un cmd de VS2022 %comspec% /K "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" amd64

Generamos la .lib: lib /def:sqlite3.def /out:sqlite3.lib

Poner variable de entorno set SQLITE3_LIB_DIR=D:\dev\rust-htmx\depends\sqlite-dll-win-x64-3450100

instalar diesel_cli con la feature de sqlite

Depends

  • cargo add axum
  • cargo add tokio --features full
  • cargo add clap --features derive
  • cargo add serde --features derive
  • cargo add serde_json
  • cargo add askama --features serde --features markdown --features with-axum --features serde-json
  • cargo add askama_axum
  • cargo add axum_server
  • cargo add tracing
  • cargo add tracing-subscriber --features env-filter
  • cargo add log
  • cargo add lazy_static
  • cargo add maud --features axum . cargo add sqlx --features runtime-tokio --features sqlite
  • cargo add dotenv
  • cargo add anyhow
  • cargo add once_cell
  • cargo add dotenv
  • cargo add anyhow
  • cargo add once_cell
  • cargo add diesel --features sqlite
  • cargo install diesel_cli --no-default-features --features sqlite
  • DATABASE_URL="sqlite://sqlite.db" > .env
  • diesel setup
  • diesel migration generate create_posts
  • diesel migration run
  • cargo add rusqlite
  • cargo add diesel_migrations

cargo add deadpool-diesel --features sqlite cargo add uuid7 --features serde cargo add uuid --features serde --features v4 --features fast-rng

rust-htmx's People

Contributors

makiolo avatar

Watchers

 avatar  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.