Crates.io | cookbook |
lib.rs | cookbook |
version | 0.1.1 |
source | src |
created_at | 2022-04-27 13:09:36.390293 |
updated_at | 2022-04-27 13:14:41.665188 |
description | The backend for the cookbook app, a web app that lets you store and handle recipes |
homepage | https://gitlab.com/gustavhaglandproject/gustav-page |
repository | https://gitlab.com/gustavhaglandproject/gustav-page |
max_upload_size | |
id | 576043 |
size | 503,239 |
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:
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!