Skip to content

cclfmht/Booklyn

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

210 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Booklyn

A book-centric social platform that integrates reviews, AI-powered insights, and personalized recommendations.

Project Links

Installation Guide (For Developers)

Step 1: Start Up with Docker

Build and launch the containers:

docker-compose up --build 

This starts two services:

  • Frontend: Vue 3 app at http://localhost:5173
  • Backend: Actix Web HTTP server at http://localhost:8080

Step 2: Database Initialization

  1. Download datasets

    Go to Amazon Books Reviews dataset on Kaggle and extract:

    • books_data.csv
    • Books_rating.csv
  2. Place files in the project

    Booklyn/database/construct_db/dataset/books_data.csv
    Booklyn/database/construct_db/dataset/Books_rating.csv
    
  3. Run database construction script

    cd database/construct_db
    python constructdb.py

    Note: please make sure packages pandas and psycopg2 are installed in your Python environment before running the commands above.

Step 3: Service Verification

Frontend Developer Notes

API Directory

API logic can be found in:

frontend/src/api/

Usage examples: frontend/src/generateDataFiles.js

Note: You usually don't need to fetch manually. Use mock data from:

frontend/src/data/

Generate Frontend Data (Yoyo's Part)

  1. Add your OpenAI API key to .env:

    OPENAI_API_KEY=your_key_here
    
  2. Run:

    cd frontend
    source ../.env
    npm run generate:data

Project Structure

Booklyn/
├── backend/                # Actix Web + SQLx backend
│   └── src/
├── frontend/               # Vue 3 + Vite frontend
│   └── src/                # Frontend components and assets
├── database/
│   └── construct_db/       # DB setup scripts and dataset
└── docker-compose.yml      # Docker service configuration

About

SAD Book System

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • Jupyter Notebook 85.3%
  • JavaScript 8.5%
  • Vue 3.4%
  • Rust 2.0%
  • Python 0.7%
  • CSS 0.1%