A web application for managing jokes built with React 19, TypeScript, and Vite. It allows you to browse, filter, and add jokes using a REST API backend.
- React 19 – UI framework
- TypeScript – static type checking
- Vite – development server and build tool
- Node.js REST API – backend server running at
http://localhost:8080
- Display a list of jokes loaded from the API
- Filter jokes by category
- Add new jokes via a form
- Skeleton loading state while data is being fetched
| Category | Description |
|---|---|
GENERAL |
General jokes |
PROGRAMMING |
Programming jokes |
KNOCK_KNOCK |
Knock-knock jokes |
DAD |
Dad jokes |
- Node.js 18+
- Running backend server (
jokes-server-restapi-node) on port 8080
cd ../jokes-server-restapi-node
npm startThe server will be available at http://localhost:8080.
npm install
npm run devThe application will be available at http://localhost:5173 (or another available port as shown by Vite).
The backend server provides the following endpoints:
| Method | URL | Description |
|---|---|---|
GET |
/jokes |
Fetch all jokes |
GET |
/jokes?category=GENERAL |
Fetch jokes by category |
POST |
/jokes |
Create a new joke |