A modern, responsive todo application built with Svelte 5 and TypeScript, featuring a beautiful purple gradient design with gold accents.
npm install
Run the development server:
npm run dev
The app will be available at http://localhost:5173
Create an optimized production build:
npm run build
The build output will be in the dist/ directory.
Preview the production build:
npm run preview
todo-app/
āāā src/
ā āāā App.svelte # Main application component
ā āāā main.ts # Entry point
ā āāā TaskForm.svelte # Task input form
ā āāā TaskList.svelte # Task list with drag & drop
ā āāā TaskItem.svelte # Individual task component
ā āāā FilterTabs.svelte # Filter buttons
ā āāā StatsDisplay.svelte # Statistics display
ā āāā vite-env.d.ts # TypeScript types for Vite
ā āāā svelte-dnd-action.d.ts # Type definitions for drag & drop
āāā public/
ā āāā index.html # HTML entry point
āāā index.js # Express server (backend)
āāā package.json # Dependencies and scripts
āāā tsconfig.json # TypeScript configuration
āāā vite.config.ts # Vite configuration
āāā dist/ # Build output (generated)
Main application component that manages:
Form component for adding new tasks with:
Displays and manages the list of tasks with:
Filter buttons for viewing:
Shows task statistics:
Individual task display with:
The app uses a beautiful purple gradient design:
linear-gradient(135deg, #667eea 0%, #764ba2 100%)#d4af37The app is fully responsive:
For database integration, you can run the Express backend:
npm start
This will start the API server on port 3000. The frontend will proxy requests to /api through Vite's dev server.
The app supports SQLite database integration. When no tasks are found in localStorage, it will attempt to load from restaurants.db. You'll need to set up the database schema in the Express backend.
ISC