GoTasks is a simple to-do list application built with Go and the Fyne UI toolkit. This application allows users to add, delete, and manage tasks with priority levels, all while storing data in a SQLite database.
- Add tasks with descriptions and priority levels (Low, Medium, High)
- Mark tasks as completed
- Delete tasks or clear all tasks
- Progress bar showing completion status
- Light/Dark theme toggle
- Prerequisites
- Installation
- Running the Application
- Building for Linux
- Building for Android
- Contributing
- License
Before you begin, ensure you have met the following requirements:
- Go installed (version 1.17 or later)
- SQLite installed
- Android SDK and NDK (if building for Android)
- Fyne toolkit
You can install Go by following the instructions on the official Go website.
To install the Fyne toolkit, run the following command:
go get fyne.io/fyne/v2
-
Clone the repository:
git clone https://github.com/tacheraSasi/GoTasks.git cd GoTasks
-
Install dependencies: Make sure you have all the required dependencies installed:
go mod tidy
To run the application locally, execute the following command:
go run main.go
This will start the application, and a window will open for you to manage your tasks.
To build the application for Linux, use the following command:
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o GoTasks
This will create a binary file named GoTasks
in the current directory.
To build the application for Android, follow these steps:
-
Ensure that you have the Android SDK and NDK installed and that you have set up
gomobile
. -
Run the following command to create an APK:
fyne package -os android -appID com.yourdomain.gotasks -icon path/to/icon.png
-
Install the APK on your Android device using ADB:
adb install GoTasks.apk
Contributions are welcome! Please fork the repository and submit a pull request for any changes you make.