Code Monkey home page Code Monkey logo

lifeline's Introduction

Leptos Logo

Leptos Client-Side Rendered (CSR) App Starter Template

This is a template for use with the Leptos web framework using the Trunk tool to compile and serve your app in development.

Creating your repo from the template

This template requires you to have cargo-generate installed. You can install it with

cargo install cargo-generate

To set up your project with this template, run

cargo generate --git https://github.com/leptos-community/start-csr

to generate your new project, then

cd lifeline

to go to your newly created project.

By default, this template uses Rust nightly and requires that you've installed the wasm compilation target for your toolchain.

Sass and Tailwind are also supported by the Trunk build tool, but are optional additions: see here for more info on how to set those up with Trunk.

If you don't have Rust nightly, you can install it with

rustup toolchain install nightly --allow-downgrade

You can add the wasm compilation target to rust using

rustup target add wasm32-unknown-unknown

Developing your Leptos CSR project

To develop your Leptos CSR project, running

trunk serve --port 3000 --open

will open your app in your default browser at http://localhost:3000.

Deploying your Leptos CSR project

To build a Leptos CSR app for release, use the command

trunk build --release

This will output the files necessary to run your app into the dist folder; you can then use any static site host to serve these files.

For further information about hosting Leptos CSR apps, please refer to the Leptos Book chapter on deployment available here.

lifeline's People

Watchers

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