An open API service indexing awesome lists of open source software.

https://github.com/kortrk/library

A full-stack library website.
https://github.com/kortrk/library

angular backend frontend postgresql ruby ruby-on-rails typescript

Last synced: 3 months ago
JSON representation

A full-stack library website.

Awesome Lists containing this project

README

        

# Library
A single-page app using Angular, Ruby on Rails, and PostgreSQL.

## Static Live Demo
[Check out a static live demo of the frontend here!](https://kortrk.github.io/library-gh-pages)

([v1.0.0](https://kortrk.github.io/library-gh-pages) is the old code it was built with)

## Video
[Quick Overview](https://www.youtube.com/watch?v=F46VmbSAUU8)

## How to Run
- Start Docker Desktop on your machine.
- `git clone` this project and go to its top level (same place as this README)
- `./build_env.sh` (takes about 3 minutes)
- `./run_env.sh`
- Access localhost:4200 on your browser

## Notable Features
- To give the librarian more control, I built a "visible" flag that can be checked or unchecked to temporarily hide a book from customers. For example, a librarian can start creating a new book but hide it until it's physically in the building and ready to borrow.
- For demo purposes, you can click Go on an empty search and get all the books.
- This is a trick to help you see how it works, but wouldn't be a feasible thing to do with a real library website.
- JSON Web Tokens are the core of the authorization and authentication process. They are stored in HttpOnly cookies.