https://github.com/mealie-recipes/recipes-server
Load Testing Server to host HTML content
https://github.com/mealie-recipes/recipes-server
Last synced: 7 months ago
JSON representation
Load Testing Server to host HTML content
- Host: GitHub
- URL: https://github.com/mealie-recipes/recipes-server
- Owner: mealie-recipes
- Archived: true
- Created: 2022-08-13T02:47:51.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2022-08-13T02:59:05.000Z (about 3 years ago)
- Last Synced: 2025-02-16T11:15:24.397Z (8 months ago)
- Language: HTML
- Size: 9.55 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Mealie Recipes Server
## This is for testing purposes ONLY, this should not be used to browser or view any of the URLs exposed by the API.
Mealie Recipes Server is a testing server utilized for load testing and memory profiling to determine the performance of Mealie and/or any other Recipe Parser.
It uses the html data provided by the [recipe-scrapers](https://github.com/hhursev/recipe-scrapers) python package and serves it on the root URL. It also provides a single API endpoint that returns a JSON list of all the endpoints available. It has a few different options for serving the HTML.
## CLI Help
```shell
NAME:
recipe-server - A testing and development server for serving recipes from various sites
USAGE:
recipe-server [global options] command [command options] [arguments...]
COMMANDS:
help, h Shows a list of commands or help for one command
GLOBAL OPTIONS:
--help, -h show help (default: false)
--host value The host to bind the server to (default: "127.0.0.1")
--latency value latency range randomly applied to requests (e.g. 0-100) in milliseconds (default: "100-1000")
--port value The port to listen on (default: "8080")
--schema value The schema to use for the server. Currently only used for constructing the urls (default: "http")
```
## Installing
Go is required to install/compile on your system.
```shell
go install github.com/mealie-recipes/recipes-server/cmd/recipes-server@HEAD
```
## Usage
See available urls at `/api/v1/available`
**Example Response**
```json
{
"recipes": [
"http://127.0.0.1:8080/abril.html",
"http://127.0.0.1:8080/acouplecooks.html",
"http://127.0.0.1:8080/afghankitchenrecipes.html",
"http://127.0.0.1:8080/akispetretzikis.html",
"http://127.0.0.1:8080/albertheijn.html",
"http://127.0.0.1:8080/allrecipescurated.html",
"http://127.0.0.1:8080/allrecipesuser.html",
"http://127.0.0.1:8080/alltomat.html",
"http://127.0.0.1:8080/altonbrown.html",
"http://127.0.0.1:8080/amazingribs.html",
...etc
]
}
```
## TODO:
- [ ] Find / Replace all image references with a single image (from unsplash or something) to eliminate network calls on scrapers