Giter Club home page Giter Club logo

bib_redirector_code's Introduction

Info

This rust web-app is intended...

  • to continue my exploration of rust
  • to explore the Rocket web-framework
  • to explore coding async-first
  • to explore rust/async testing

Functionally, it...

  • parses the bib out of the incoming url
  • validates the bib
  • runs an alma-api lookup to get the alma mms_id
  • builds a primo redirect url
  • redirects the user to that url

This all works now. (yay!)

Notes...

  • Our actual implementation-solution will likely be in php or python.

Next

  • โˆš see if there's an easy way to implement a route with the same pattern, but bib_tester/info -- that'd get picked up before the bib-num pattern. A lightweight endpoint like this would allow experimenting with ab load-testing.

  • convert print-statements to logging.

  • look into returning a templated response.

  • switch any simple unwrap() calls to unwrap_or_else() for my own edification -- to better understand the kinds of error-conditions that can exist.

  • explore caching.

  • explore saving api lookups into an sqlite db.

  • look into how I might embed the curret git-commit-version into the compilation process, for my usual webapp version url-response.


Resources

bib_redirector_code's People

Contributors

birkin avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.