A modern, Todo application built with SolidJS, featuring a clean UI and full CRUD functionality.
- 🎯 Full CRUD Operations - Create, read, update, and delete tasks
- 🎨 Modern UI - Clean and responsive design
- ⚡ SolidJS Frontend - Fast and efficient reactive framework
- 🔧 Json-Server Mock - RESTful API with Json-Server
- 🐳 Docker Support - Easy deployment with Docker Compose
- 📱 Responsive Design - Works on desktop and mobile devices
- SolidJS - Reactive JavaScript framework
- Vite - Fast build tool and dev server
- TailwindCSS - Modern styling
- DaisyUI - Flexable UI libriary
- Docker - Containerization
- Docker Compose - Multi-container orchestration
- Node.js 18+
- npm
- Docker (optional)
-
Clone the repository
git clone https://github.com/abdugaffor2004/ToDoApp-SolidJS.git cd ToDoApp-SolidJS -
Install dependencies
npm install
-
Start development server
npm run dev
-
Open your browser Navigate to http://localhost:5173
-
Start with Docker Compose
docker-compose up --build
-
Access the application
- Frontend: http://localhost:5173
- Backend API: http://localhost:3000
ToDoApp-SolidJS/
├── src/ # Frontend source code
│ ├── components/ # Reusable UI components
│ ├── types/ # Application common types
│ ├── styles/ # CSS/SCSS files
│ └── utils/ # Utility functions
├── server/ # Backend API
│ ├── db.json # API routes
│ └── Dockerfile # Docker server image definition
├── scripts/ # Build and setup scripts
├── docker-compose.yml # Docker services configuration
├── Dockerfile # Docker client image definition
└── package.json # Dependencies and scripts
npm run dev- Start development server with hot reloadnpm run build- Build for productionnpm run preview- Preview production build locally
docker-compose up- Start all servicesdocker-compose down- Stop all servicesdocker-compose build- Rebuild containers
The backend provides RESTful API endpoints for todo management:
GET /api/todos- Get all todosPOST /api/todos- Create new todoPUT /api/todos/:id- Update existing todoDELETE /api/todos/:id- Delete todo
-
Build the application
npm run build
-
Deploy the
distfolder to your preferred hosting service
-
Build production image
docker build -t todoapp-solidjs . -
Run production container
docker run -p 80:80 todoapp-solidjs