An open API service indexing awesome lists of open source software.

https://github.com/walidoux/todo-tauri-app

📝 An opensource desktop to-do app.
https://github.com/walidoux/todo-tauri-app

Last synced: 7 months ago
JSON representation

📝 An opensource desktop to-do app.

Awesome Lists containing this project

README

          

# 🐕 Productivity App

Design inspired from a [todo app on FrontendMentor](https://www.frontendmentor.io/challenges/todo-app-Su1_KokOW).
Frontend Mentor challenges help you improve your coding skills by building real projects.
Built on top of other technologies, more details about them are down below.

This is currently how it looks like:

![Preview Light/Dark Theme App](./markdown/light-dark-app.png)

## Table of contents

- [Overview](#overview)
- [Challenges](#challenges)
- [Built with](#built-with)
- [What I learned](#what-i-learned)
- [Continued development](#continued-development)
- [Useful resources](#useful-resources)
- [Misc](#misc)
- [Author](#author)

## Overview

### Challenges

Users should be able to:

- [x] See hover states for all interactive elements on the page
- [x] Add new todos to the list
- [x] Mark todos as complete
- [x] Delete todos from the list
- [x] Filter by all/active/complete todos
- [x] Clear all completed todos
- [x] Toggle light and dark mode
- [ ] **Bonus**: Drag and drop to reorder items on the list

### Built with

| 🛠️ Technologies | 📝 Descriptions |
| ---------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------- |
| [![Solidjs](https://img.shields.io/badge/Solid%20JS-2C4F7C?style=for-the-badge&logo=solid&logoColor=white)](https://www.solidjs.com/) | An alternative to React based on reactivity. |
| [![Rust](https://img.shields.io/badge/Rust-black?style=for-the-badge&logo=rust&logoColor=#E57324)](https://www.rust-lang.org/fr) | Programming system typed language. |
| [![Typescript](https://img.shields.io/badge/TypeScript-007ACC?style=for-the-badge&logo=typescript&logoColor=white)](https://www.typescriptlang.org/) | Typed JS language. |
| [![TailwindCSS](https://img.shields.io/badge/Tailwind_CSS-38B2AC?style=for-the-badge&logo=tailwind-css&logoColor=white)](https://tailwindcss.com/) | CSS Framework. |
| [![Vite](https://img.shields.io/badge/Vite-B73BFE?style=for-the-badge&logo=vite&logoColor=FFD62E)](https://vitejs.dev/) | Next generation front-end tooling. |
| [![Tauri](https://img.shields.io/badge/Tauri-FFC131?style=for-the-badge&logo=Tauri&logoColor=white)](https://tauri.studio/) | Desktop framework for building webviews. |

### What I learned

An Immer inspired utility function called `produce()`. This utility allows us to write code that mutates
data in the normal way but automatically creates immutable copies behind the scenes.

```tsx
export const addTodo = (todo: ITodo) => setTodos(produce((currentTodos: ITodo[]) => currentTodos.push(todo)))
```

Also, [SolidJS considerations](https://www.solidjs.com/guides/reactivity#considerations)
are extremely important to understanad when it specifically comes to
logic top-level structure or props destructuring, see second one.

## Continued development

- More focus on code written in Rust rather than just in plain JS which reduce compilation time.

- Sharing common design for all OS without breaking UI & UX desktop apps best practices and conventions. Keeping track of a user friendly interface avoiding an overload of functionalities.

### Useful resources

- [Tauri Action](https://github.com/tauri-apps/tauri-action) - Alternative to cross-platform compilation which builds Tauri binaries for the 3 most known operating systems.
- [Tauri Docs (Window Module)](https://tauri.app/v1/api/js/modules/window/#appWindow) - Incredibly usefull API for having access to: Events listeners, interfaces, types and methods of the window.

### Misc

A fun cli tool to count lines of code, credits to [theoludwig](https://github.com/theoludwig/theoludwig).

```shell
cloc . --exclude-dir=target,node_modules --exclude-ext=yaml
```

## Author

- My Website - [Walid Korchi](https://www.walidkorchi.com/)
- FrontendMentor - [@Walidoux](https://www.frontendmentor.io/profile/Walidoux)