DEV Community

MD Taseen Khan
MD Taseen Khan

Posted on • Originally published at reactjsexample.com on

A Rust-powered desktop app using Tauri and Next.js

A Rust-powered desktop app using Tauri and Next.js

A Rust-powered desktop app using Tauri and Next.js

Foodie Finder

Recipe sites are inundated with ads and information that is distracting.

This is a convenient and private desktop application built in Tauri to find recipes from a search bar, scrape the important information and save them locally to your machine.

Overview

A Rust-powered desktop app using Tauri and Next.js

Why I Built This

I am in the process of learning Rust and desktop application development. This was a fun learning experiment to get me used to syntax and community libraries.

My fiancee had expressed how messy recipe websites were and how they show so many ads. This was the inspiration for Foodie Finder.

Getting married in 2024. <3

Features

  • Search-box interface to find recipes from a text prompt
  • Scrapes websites and filters out those with incomplete datasets (much love for the recipe-scrapers library)
  • Ability to save recipes to local sqlite db

Platforms

  • Only tested on MacOS

Built With

  • Rust
  • Tauri
  • Next.js / React

Getting Started

To get a local copy up and running follow these simple example steps.

Prerequisites

  1. Must have python 3.11 installed
  2. Must have Rust and toolchain installed

Build the application

  1. Get a free Edamam API Key (no credit card required) at https://www.edamam.com/
  2. Clone the repo
git clone https://github.com/Skarian/foodiefinder.git
Enter fullscreen mode Exit fullscreen mode
  1. Add app_id and app_key environment variables in /src-tauri/.env. Example below
app_id=c5re916e
app_key=19bb82b76d80a3185f88d3c2daef6315
Enter fullscreen mode Exit fullscreen mode
  1. Install python dependencies pip install recipe-scrapers
  2. Install NPM dependencies npm install
  3. Run cargo tauri build
  4. The executable will be under the target folder: /src-tauri/target/. Feel free to move it wherever you prefer

Roadmap (maybe?)

  • Edit saved recipe data
  • Ability to add specific recipe URLs
  • AI-enhanced generation

Contributing

This was just a quick side project that already meets my goals. Not really looking for it to be a major open-source project but if there is community interest here I am happy to continue development.

License

Distributed under the MIT License. See LICENSE.txt for more information.

Contact

Neil Skaria - @skar_ai - neil.skaria@gmail.com

Project Link: https://github.com/Skarian/foodiefinder

Usage Note

This project is for demonstration / non-commercial usage only, please follow relevant regulation where appropriate

GitHub

View Github

Top comments (0)