No description
- TypeScript 66.7%
- Java 25.9%
- CSS 5.7%
- HTML 0.9%
- JavaScript 0.8%
| quiz | ||
| Trivia-Web-App | ||
| config.json | ||
| README.md | ||
Trivia Web App + Questions API
This repository contains a trivia web app, as well as an API backend to receive questions and check answers.
Project Overview
The project is split into two main components:
-
Spring Boot Backend API: A Spring Boot based backend API where questions can be fetched at "/questions", which can be checked at "/checkanswers"
-
Trivia Web App A React-based web application that can be used for answering the trivia questions gotten by the API.
Trivia Web App
A web interface for interaction with the API.
Tech Stack
- React + Vite
- TypeScript
- Tailwind CSS
- Shadcn UI
Running the web app
cd into the Trivia-Web-App/ directory and run:
For development
npm install
npm run dev
For production
npm run build
npm run preview
Spring Boot API
The web app connects to the backend via calls to http://localhost:8080.
For this, the backend needs to be started by moving into the quiz directory and running:
./mvnw spring-boot:run -> for Unix based systems
mvnw.cmd spring-boot:run -> for Windows systems