#recipe #backend-web #back-end #react #store #handle

bin+lib cookbook

The backend for the cookbook app, a web app that lets you store and handle recipes

2 releases

0.1.1 Apr 27, 2022
0.1.0 Apr 27, 2022

#21 in #backend-web

GPL-2.0-or-later WITH Bison-exception-2…

205KB
287 lines

Cookbook app

Idea

To have a database with recipies. The backend is a rust webserver with a database. The front end is a react web app. Functionality includes:

  • Saving of recipies
  • Export of ingredients to a shopping list
  • Registry of ingredients with category
  • Shopping list is divided into categories

Future ideas?

  • Mobile friendly version.
  • Tracking of ingredients at home?
  • Import of recipies from websites (ica, undertian, osv...)
  • Recipy categories, favorites, timeline?

Setup

Install diesel with:

cargo install diesel_cli --version="2.0.0-rc.0" --no-default-features --feature "sqlite"

Run in server directory:

echo "DATABASE_URL=file:db/recipies.db" > .env
mkdir db
diesel run migration

For client development install yarn, run yarn build and copy the contents of the build directory over to server/static.

Then start the web server with cargo run and voila, a webpage at localhost:9000!

Dependencies

~56MB
~1M SLoC