Skip to content

Toy web app. Generates 7 random tiles. Then finds words from a subset of valid scrabble words. In progress. For learning rust for the web with htmx. Based on Guardian Coding challenges.

Notifications You must be signed in to change notification settings

leshec/wordfind

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

wordfind

Web app: Toy scrabble word finder

Generates random tiles: then finds largest, highest score and valid words.

Website

Todo:

  • Favicon. What is the right way to do this?
  • Experiment with loops in templates
  • Figure how to deploy with shuttle
  • Use it to port some of my projects e.g. this one scrabble
  • Make some notes for later
  • maybe add styling in the layout rather than inline. Ugh no
  • error handling and testing etc
  • add some post requests e.g. add in your own letters
  • gamify it with option to find as many words as you can with a given random set

Project: HTMX, Tera, Axum, Missing and Shuttle

HTMX Example app:

Thanks to:

Screenshot:

Letters: D,I,K,N,O,Q,R Returns: longest word, "drink", highest, "Qi = 10"

Install:

  • if you want to take this and turn it into something else...and notes to self
  • make sure you have rust installed. It comes with cargo the package manager
  • see one-liner on (https://www.rust-lang.org/) install page: curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
  • clone this project: from terminal run git clone https://github.com/leshec/wordfind.git
  • go to the cloned repo cd wordfind
  • from terminal run cargo install cargo-shuttle so your system has the shuttle stuff
  • from terminal run cargo shuttle run - may need a login api key via shuttle.rs. Just sign up to shuttle and it gives you an api key
  • your system may do a pop up asking for permissions to access the network
  • should be able to see the site running locally on your machine e.g. via 127.0.0.1:8000
  • visit (https://www.shuttle.rs/) for more info, example and to deploy your own stuff

About

Toy web app. Generates 7 random tiles. Then finds words from a subset of valid scrabble words. In progress. For learning rust for the web with htmx. Based on Guardian Coding challenges.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published