Skip to content

marshallku/menu-today

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

87 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Random Meal SVG Generator

Screenshot of generated meal svg

The Random Meal SVG Generator is a web application built with Rust and Axum framework. It fetches random meal data from an external API and renders this data as an SVG image.

Prerequisites

  • Rust
  • Docker

Additional packages

sudo apt install pkg-config libssl-dev

In order to run the application using cargo run, the reqwest library requires the pkg-config and libssl-dev packages to be installed

Run the application

With Cargo

cargo run

You can run the application directly using Cargo.

With Docker

docker build -t menu-today .
docker run -e BIND_ADDRESS=0.0.0.0 -p 41880:41880 --restart=unless-stopped -d menu-today

Alternatively, this application can be effortlessly executed using Docker.

Usage

http://127.0.0.1:41880/

Access the application via a web browser or any HTTP client at the address where the server is running. For example, if running locally on the default port(41880).

Testing

To run the unit tests:

cargo test

This will execute the tests defined in the application, ensuring all components function as expected.

About

Random Meal SVG Generator

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages