Skip to content

Crossword helper web app to generate words from letters, find anagrams, find score of scrabble words. Fun way to learn Rust for web with Shuttle, Axum, HTMX and Tera.

License

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

34 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

wordfinder

Web app: Crossword / scrabble word finder learning webproject

  • Demo mode generates random tiles: then finds largest, highest score and valid words
  • Search for words in a dictionary of 300k words
  • Play a game to find words from random letters/tiles
  • Find anagrams of words

Shuttle is an awesome tool for quickly and easily deploying webapps based on Rust, Tera for templating was good but I'll explore others but runtime template and error are hard to spot, Axum is easy enough to use and I like the idea of HTMX in general

Not 100% finished but functions enough as intended

Website

Todo:

  • Favicon. What is the right way to do this?
  • Experiment with loops in templates
  • Figure how to deploy with shuttle
  • Make some notes for later
  • error handling and testing etc
  • add an about and contact for new words

For another day...

  • add a high score leaderboard for the games
  • add a pop over if you click on a word to show meaning of word, there is a nice dictionary API for that

Project tools: HTMX, Tera, Axum, Missing and Shuttle

HTMX Example app:

Thanks to:

Screenshot:

screen_shot_wordfind

Install:

If you want to mess around with it...

  • Terminal git clone https://github.com/leshec/wordfind.git
  • Need Rust installed, comes with Cargo package manager, from terminal curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
  • Install Shuttle or see their website e.g for linux/mac curl -sSfL https://www.shuttle.rs/install | bash
  • A Windows version of Shuttle available
  • Terminal cargo build && cargo shuttle project run
  • Site runs locally on your machine e.g. via 127.0.0.1:8000
  • See docs on Shuttle.rs
  • Deployment is pretty simple:
  • Log in to shuttle via terminal cargo shuttle login note sign up is easy with Github, dashboard is minimal, prompts for API, takes you to website to get it, and then paste into terminal and run from command line cargo shuttle deploy
  • Visit (https://www.shuttle.rs/) for more info, example and to deploy your own stuff loads of example

Note: Shuttle is migrating from shuttle.rs to shuttle.dev, this site will be moved soon. The web url will change on update:

  • UPDATE: use shuttle run, shuttle deploy and shuttle deployment status

About

Crossword helper web app to generate words from letters, find anagrams, find score of scrabble words. Fun way to learn Rust for web with Shuttle, Axum, HTMX and Tera.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published