/rust-bookstore

Sample rust microservice on hyper

Primary LanguageRust

rust-bookstore

A sample app I use for playing around with rust microservices.

This micro service currently will accept the following calls:

  • GET /book/{upmID} - Retrieve a book
  • POST /book/ - Create a book example json: { "book_id": "2c8a4ac9-65f5-42a3-9387-019fad35490c", "author": "Ernest Hemmingway", "title": "For Whom the Bell Tolls" }

Local Setup

Useful scripts

  • Create an initial entry: /scripts/post_book.sh
  • Retrieve the initial entry: /scripts/get_book.sh
  • Generates redis config for forge based on the current redis install: /scripts/gen_env.sh
  • Tails logs: scripts/tail_book.sh