A simple todo application built with Angular that uses local browser storage to save and manage todos. This app allows you to create, edit, delete, and mark todos as complete, with all data persisted locally in your browser's storage.
- ✅ Create new todos
- ✏️ Edit existing todos
- 🗑️ Delete todos
- ✅ Mark todos as complete/incomplete
- 💾 Automatic local storage persistence
- 📱 Responsive design
- 🎨 Clean and modern UI
Before running this project, make sure you have the following installed:
- Node.js (version 16 or higher)
- Angular CLI (version 20.3.3 or higher)
- Clone the repository:
git clone <repository-url>
cd todo-angular- Install dependencies:
npm installThis project was generated using Angular CLI version 20.3.3.
To start a local development server, run:
ng serveOnce the server is running, open your browser and navigate to http://localhost:4200/. The application will automatically reload whenever you modify any of the source files.
Angular CLI includes powerful code scaffolding tools. To generate a new component, run:
ng generate component component-nameFor a complete list of available schematics (such as components, directives, or pipes), run:
ng generate --helpTo build the project run:
ng buildThis will compile your project and store the build artifacts in the dist/ directory. By default, the production build optimizes your application for performance and speed.
To execute unit tests with the Karma test runner, use the following command:
ng testFor end-to-end (e2e) testing, run:
ng e2eAngular CLI does not come with an end-to-end testing framework by default. You can choose one that suits your needs.
Once the development server is running, you can:
- Add a new todo: Type your task in the input field and press Enter or click the Add button
- Mark as complete: Click the checkbox next to any todo to mark it as complete
- Edit a todo: Click on the todo text to edit it inline
- Delete a todo: Click the delete button (🗑️) next to any todo
- View all todos: All your todos are automatically saved and will persist between browser sessions
This application uses the browser's localStorage API to persist your todos. This means:
- Your todos are saved locally on your device
- Data persists between browser sessions
- No server or database required
- Data is private to your browser
- Angular 20.3.3 - Frontend framework
- TypeScript - Programming language
- SCSS - Styling
- Local Storage API - Data persistence
- Angular CLI - Development tools
Feel free to contribute to this project by:
- Forking the repository
- Creating a feature branch
- Making your changes
- Submitting a pull request
This project is open source and available under the MIT License.
For more information on using the Angular CLI, including detailed command references, visit the Angular CLI Overview and Command Reference page.