GithubHelp home page GithubHelp logo

cowboyai / csr-start Goto Github PK

View Code? Open in Web Editor NEW

This project forked from thecowboyai/leptos-csr-starter-kit

0.0 0.0 0.0 10.6 MB

a leptos csr template for cowboy ai

Home Page: https://leptos-csr-starter.vercel.app/

JavaScript 4.85% Rust 63.37% CSS 0.85% HTML 30.93%

csr-start's Introduction

create-leptos-csr

Generate a client-side rendered leptos application with one command.

mesa

Getting Started

Install create-leptos-csr globally using:

cargo install create-leptos-csr-tw

This command installs the necessary binary, making it accessible from your command line.

To initiate a new Leptos project, run:

create-leptos-csr-tw

Template features:

  • TailwindCSS for styling
  • Serves image content from /public that trunk recognizes
  • Mobile viewport configuration
  • An optional vercel config file to for deployment routing.
  • Leptos-use, a collection of Leptos utilities
  • Up to date crate dependencies

Why I made this

Creating a client-side rendered Leptos application usually requires starting from scratch, involving multiple steps and potential hurdles.

Something like:

cargo init <project>
cargo add leptos --features=csr,nightly
cd <project>
touch index.html
... # more work here
touch input.css
npx tailwindcss init
... # setting up your tailwind...
mkdir public
(modify `index.html`)
... # adding the same boilerplate to your index.html
trunk serve --open

This crate aims to reduce all the hair pulling that a beginner would face when setting up a leptos application. For experienced developers, this crate saves you time by setting up the necessary stuff.

If you're just starting out, this is great starting point since you can use this template while reading the Leptos book.

Recent Updates

  • Update wasm-bindgen to 0.2.89
  • Removed a lot of boilerplate in app.rs
  • Restructured project to extend to more templates

Contributions

Contributions are warmly welcomed and greatly appreciated. I'd love to see other templates that use different styling libraries or deployment services.

csr-start's People

Contributors

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