A modern Wikipedia revision statistics visualizer.
- Backend: Spring Boot (Kotlin) with Retrofit for Wikipedia API integration.
- Frontend: React + TypeScript + Vite + Tailwind CSS + Chart.js.
- Java 17+
- Node.js 18+
To have a fast feedback loop, you should run the backend and frontend separately:
-
Start the Backend:
./gradlew bootRun
The API will be available at
http://localhost:8080. -
Start the Frontend: You can run this from the project root:
npm run dev
Alternatively, you can go into the frontend directory:
cd frontend npm install npm run devOpen
http://localhost:5173in your browser. Vite proxies requests starting with/apito the backend.
To build the entire project into a single executable JAR that serves the frontend:
./gradlew buildThis will:
- Run
npm ciandnpm run buildin thefrontenddirectory. - Copy the built assets from
frontend/distto the Spring Boot static resources. - Package everything into
build/libs/WikiStats-1.0-SNAPSHOT.jar.
You can then run the app with:
java -jar build/libs/WikiStats-1.0-SNAPSHOT.jarAnd access it at http://localhost:8080.
src/main/kotlin/wikistats/: Backend source code.frontend/: React application.src/components/: UI components (Chart, Form, Preview, etc.).src/hooks/: Custom React hooks for data fetching.src/lib/: Shared types and utilities.