Abdulrahman Elsayed Badawy

Data AnalysisWeb development

LNMania (web scraping + SQL)

A light-novel library: Python scripts fill a PostgreSQL catalogue, an Express API serves it, and a React app lets readers browse, shelve, rate and comment.

  • TypeWeb development
  • 10database tables
  • 3API routers
  • 21genres
  • 2roles: user, admin
LNMania (web scraping + SQL)

Highlights

  • Scrapy spider and a loader that moves scraped catalogue data into PostgreSQL with versioned migrations, behind a React/Express web app

The problem

Readers of light novels keep track of what they read across many sites. LNMania puts a catalogue, personal shelves, ratings and comments in one place, with an admin side for keeping the catalogue in order.

Approach

The database is PostgreSQL with ten tables built by versioned migrations: novels, authors and genres on one side; users with their ratings, comments, favourites, collections and reading status on the other. An Express REST API with three routers (novels, reviews, users) sits on top, with bcrypt-hashed passwords, JWT sessions and two roles. The front end is a React single-page app. Separate Python scripts collect novel details through source adapters behind one interface.

Results

  • 10 PostgreSQL tables built by 10 versioned migrations
  • REST API with 3 routers, JWT sign-in and two roles (user, admin)
  • Reader features: browse, favourites, named collections, read and unread, a 0 to 5 rating and comments
  • Seed catalogue of 18 novels across 21 genres

Figures

Select a figure to enlarge it.

The app at a glance

The app at a glance

Collect, store and serve, read: scraping scripts and migrations fill the catalogue, PostgreSQL and an Express API hold and serve it, and a React app is where readers browse, shelve, rate and comment.

The database

The database

The ten tables and their foreign keys, with users and novels at the centre, beside the genres of the 18 seeded novels.