Skip to content

Nephophile06/Bookstore-Data-Generator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

11 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ“š Bookstore Data Generator

A full-stack demo app for generating and browsing fake bookstore data with a React frontend and Express backend.

Features

  • Infinite scrolling book list with expandable details

  • Adjustable parameters: language, seed, avg. likes & reviews

  • Export data to CSV

  • Fake book covers generated dynamically

  • Multi-language support (English, Germany, Japanese)

  • Offline-ready (PWA support)

Project Structure

  • server.js β†’ Express backend (API + static frontend)

  • frontend/ β†’ React app

    • src/App.js β†’ Main component

    • src/App.css β†’ Styling

    • src/serviceWorkerRegistration.js β†’ Service worker setup

    • src/service-worker.js β†’ Custom Workbox worker

    • public/ β†’ Static assets

Getting Started

Prerequisites

  • Node.js v16+

  • npm

Installation

git clone <your-repo-url>
cd task5
npm install
npm run build

Run App

npm start

App runs at http://localhost:4000

Development

  • Frontend only:

    cd frontend && npm start
    
  • Backend only:

    npm run dev
    

API Endpoints

  • GET /locales β†’ Supported locales

  • GET /books β†’ Paginated fake book data

  • GET /cover β†’ Generated book cover

Releases

No releases published

Packages

No packages published