Giter Site home page Giter Site logo

lukethacoder / leptos-playground Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 39 KB

๐Ÿฆ€ playing around with leptos

Home Page: https://leptos-playground-rouge.vercel.app/

License: GNU General Public License v3.0

HTML 1.13% CSS 0.20% Rust 98.01% JavaScript 0.66%
leptos rust tailwindcss

leptos-playground's Introduction


Logo

leptos-playground

playing around with leptos

Installation

Install trunk (if you havn't already)

cargo install trunk

Set rust to the nightly toolchain

Just for this project:

rustup toolchain install nightly
rustup override set nightly

For every rust project:

rustup toolchain install nightly
rustup default nightly

Make sure you've added the wasm32-unknown-unknown target so that Rust can compile your code to WebAssembly to run in the browser.

rustup target add wasm32-unknown-unknown

Make sure you have TailwindCSS installed. You can manually run the npx tailwindcss -i input.css -o style/output.css command and it will ask if you want to install.

Development

Run the development server with:

trunk serve --open

Non-windows Machine Development

To get this up and running on a non-windows machine, edit the Trunk.toml file:

[[hooks]]
stage = "pre_build"
- command = "powershell"
+ command = "sh"
command_arguments = ["-c", "npx tailwindcss -i input.css -o style/output.css"]

Deploy to Vercel

Make sure you have the Vercel CLI installed

pnpm i -g vercel

Push build to vercel

NOTE: this assumes you've already run trunk build

vercel --prod

leptos-playground's People

Contributors

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