{"repo":"AfaanBilal/bookstore","free":true,"listed":false,"github":"https://github.com/AfaanBilal/bookstore","clone":"git clone https://github.com/AfaanBilal/bookstore.git","description":"BookStore Management REST API Server in Rust with Rocket, SeaORM and JWT.","language":"Rust","stars":12,"topics":["docker","jwt","rest-api","udemy","udemy-course","rust","seaorm"],"license":"MIT","category":"deployment-docker-iac","readme_excerpt":"📕 BookStore ============ BookStore Management REST API Server in Rust with Rocket, SeaORM and JWT. --- Udemy Course Learn about creating this in my Udemy course: Creating an API server in Rust with Rocket, SeaORM and JWT by Afaan Bilal. --- Author : Afaan Bilal --- Run with Docker --- Configuration The following environment variables configure the server. Environment Variable Default value Description :-------------------- :------------ :----------------------------------- BOOKSTORE JWT SECRET [none] The JWT signing secret. Must be set. BOOKSTORE DB HOST localhost Database Host BOOKSTORE DB PORT 3306 Database Port BOOKSTORE DB USERNAME root Database Username BOOKSTORE DB PASSWORD [blank] Database Password BOOKSTORE DB DATABASE bookstore Database Name ROCKET ADDRESS 127.0.0.1 HTTP Server Bind Address ROCKET PORT 8000 HTTP Server Port --- Run --- API Method Path Auth? Description :----- :-------------------- :---- :--------------------------------------------------- GET / ⬜ Index. Returns Hello, World! . POST /auth/sign-up ⬜ Create a new account. POST /auth/sign-in ⬜ Sign in. Returns a JWT on success. GET /auth/me ✅ Get the authenticated user's details. GET /authors ✅ Get a list of authors. POST /authors ✅ Create an author. GET /authors/ {id} ✅ Get the author with matching the id . PUT /authors/ {id} ✅ Update the author matching the id . DELETE /authors/ {id} ✅ Delete the author matching the id . GET /authors/ {id} /books ✅ Get a list of books by the author matching the id . G","default_branch":null,"files":null,"tree":[],"storefront":"/r/AfaanBilal","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/AfaanBilal/bookstore/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}