Skip to content

A (currently very) small collection of utility programs.

License

Notifications You must be signed in to change notification settings

laxsjo/lax-utils

Repository files navigation

Lax-utils Logo

Lax-Utils

Lax-Utils is a website holding a collection of small utility functions.

The only page that has been added yet is the color picker page. But I plan to add a numerical base converter and a time zone converter page at some point in the future (don't know when though...).

The idea behind all these pages is that these are all things that I've needed, but been disappointed in the lack of good polished options online.

This project started as a school project (and still is ;) ) during spring 2023 at Arena Academy.

You can find the website at lax-utils.app (it seems that the wasm is currently broken on the live website for some reason :/. It still works if you clone it and build and run it locally though).

How do I run this? (Local Setup)

This section explains how to create a local dev server. I've tested this on windows, but the steps should theoretically work on any os. Some shell syntax could still be different though.

I will also assume that you have a blank computer without rust installed, so you can skip any irrelevant steps for your specific setup.

You first need to install rustup, a program to manage your installed rust versions. You can find instructions for how to install it on their website: rustup.rs

Once rustup is installed the next step is to install nightly and the wasm target. Run these in your terminal.

rustup toolchain install nightly
rustup target add wasm32-unknown-unknown

You then need to install cargo-leptos. (this might take a while)

cargo install cargo-leptos

Then cd into the parent-folder where you want the folder containing your local copy of the project. Then clone the project. (Ignore this step if you've downloaded the project through other means.)

git clone https://github.com/laxsjo/lax-utils.git

Then build, run, and watch for any changes to the project using the following command.

cargo leptos watch

If the build fails, you may need to install wasm a second time. That solved the issue for me, I have no idea why though ¯\_(ツ)_/¯.

rustup target add wasm32-unknown-unknown

After it has finished compiling (it will take a time the first time you do it), the local server will automatically be started under localhost:3000.

Are you my teacher?

Then you want to look in the /src and /style directories, where the source code and css is located.

The actual main app code is located in /src/app.rs. /src/main.rs and /src/lib.rs only sets up some boilerplate config (it came as a default in the template i used, which you can find at github.com/leptos-rs/start).

About

A (currently very) small collection of utility programs.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published