OAPEN Suggestion Service Web Application - SIT Senior Capstone
 
 
 
 
 
 
Go to file
Max Zaremba 033fc1e56e
OAP 26 (#12)
We are disregarding the linting job failure as this is maybe an environment issue. Will be fixed in subsequent PRs.
2022-10-18 11:31:49 -04:00
.github/workflows OAP-15, OAP-22: Data ingest + text preprocessing (#6) 2022-10-04 08:22:55 -04:00
api OAP-35 Connect `api/` and `web/`, fix querying between them, add running documentation & make dev environment easier to use (#13) 2022-10-18 08:10:11 -04:00
oapen-engine OAP 26 (#12) 2022-10-18 11:31:49 -04:00
web OAP-35 Connect `api/` and `web/`, fix querying between them, add running documentation & make dev environment easier to use (#13) 2022-10-18 08:10:11 -04:00
.gitignore OAP-18 Create basic framework to view books through OAPEN (rough is OK) (#5) 2022-10-03 21:34:11 -04:00
.pre-commit-config.yaml OAP-14: DB connection and seeding (#8) 2022-10-11 14:08:35 -04:00
LICENSE.md Create LICENSE.md 2022-09-27 14:00:13 -04:00
README.md OAP-35 Connect `api/` and `web/`, fix querying between them, add running documentation & make dev environment easier to use (#13) 2022-10-18 08:10:11 -04:00
all-dev.sh OAP-35 Connect `api/` and `web/`, fix querying between them, add running documentation & make dev environment easier to use (#13) 2022-10-18 08:10:11 -04:00
run-api.sh OAP-35 Connect `api/` and `web/`, fix querying between them, add running documentation & make dev environment easier to use (#13) 2022-10-18 08:10:11 -04:00
run-web.sh OAP-35 Connect `api/` and `web/`, fix querying between them, add running documentation & make dev environment easier to use (#13) 2022-10-18 08:10:11 -04:00
setup.cfg OAP-14: DB connection and seeding (#8) 2022-10-11 14:08:35 -04:00
setup.sh OAP-35 Connect `api/` and `web/`, fix querying between them, add running documentation & make dev environment easier to use (#13) 2022-10-18 08:10:11 -04:00

README.md

OAPEN Suggestion Engine

The OAPEN Suggestion Engine will suggest ebooks based on other books with similar content.

Running server

You can run all the servers together with ./all-dev.sh -- after installing dependencies with ./setup.sh

Monorepo components

This project is a monorepo, with multiple pieces that can be added or removed as neccessary for deployment.

Mining Engine (Core)

This engine is written in Python, and generates the recommendation data for users. Our suggestion service is centered around the trigram semantic inferencing algorithm. This script should be run as a job on a cron schedule to periodically ingest new texts added to the OAPEN catalog through their API. It will populate the Database (see Database section) with pre-processed lists of suggestions for each entry in the catalog.

You can find the code for the mining engine in oapen-engine/.

Base dependencies:

  • Python v3.10
  • PIP package manager
  • make

Automatically-installed dependencies:

  • nltk -- Natural language toolkit.
    • Maintained on GitHub by 300+ contributors.
    • Most recent update: 8 days ago
  • requests -- HTTP request library
    • Maintained on GitHub by 600+ conributors, and backed by sponsors.
    • Most recent update: 1 month ago.
  • psycopg2 -- PostgreSQL Database Adapter
    • Maintained on GitHub by 100+ contributors, and used by 480,000+ packages.
    • Most popular PostgreSQL database adapter for Python
  • pandas -- data analysis library
    • Maintained by PYData with large amounts of sponsors. 2,700+ contributors.
  • sklearn -- Scikit Learn

API Engine (Core)

This API server returns a list of recommended books from the database.

You can find the code for the API engine in api/.

Base dependencies:

  • NodeJS 14.x+
  • NPM package manager

Automatically-installed dependencies:

  • express - Basic HTTP server
  • pg -- basic PostgreSQL driver

Web Demo (Optional)

This is a web-app demo that can be used to query the API engine and see suggested books. This does not have to be maintained if the API is used on another site, but is useful for development and a tech demo.

You can find the code for the web demo in web/.

Base dependencies:

  • NodeJS 14.x+
  • NPM package manager

Automatically-installed dependencies:

  • next -- Framework for production-driven web apps
    • Maintained by Vercel and the open source community
  • react -- Frontend design framework
    • Maintained by Meta.
    • Largest frontend web UI library.
    • (Alternative considered: Angular -- however, was recently deprecated by Google)
  • pg -- basic PostgreSQL driver
  • typescript -- Types for JavaScript
    • Maintained by Microsoft and the open source community.