OpenTodo is a todo list application that allows you to create personal task lists and share them with other users. With features like login, register, and logout, all users can view the task lists created by anyone.
- Login: Sign in using an already registered account.
- Register: Sign up to create a new account.
- Logout: Log out from the active account.
- Task List: Create and view tasks that you have created or tasks created by others.
- Express.js: A framework for Node.js used to build the backend of the application.
- PostgreSQL: A relational database management system used to store user data and task lists.
- HTMX: A JavaScript library for building interactive web applications with minimal JavaScript code.
Before running this application, make sure you have installed:
-
Clone this repository to your local machine:
git clone https://github.com/triliun/OpenTodo.git cd OpenTodo
-
Install the application dependencies:
npm install
-
Create a PostgreSQL database using the
query.sql
file. -
Adjust the configuration in the
.env
file:DB_USER=yourusername DB_HOST=localhost DB_NAME=OpenTodo DB_PASS=yourpass DB_PORT=5432 PORT=3000 JWT_SECRET=yoursecret NODE_ENV=development
-
Run the application:
npm start
The application will run at http://localhost:3000
.
- Register a new account by clicking the plus button at the top right.
- Log in with an already registered account.
- After logging in, you can create your personal task lists, and the lists can be viewed by other users.
- Log out to exit the application.
If you want to contribute to this project, feel free to open a pull request. Make sure to follow the suggested development guidelines.
OpenTodo adalah aplikasi todo list yang memungkinkan Anda membuat daftar tugas pribadi dan berbagi daftar tersebut dengan pengguna lain. Dengan fitur login, register, dan logout, semua pengguna dapat melihat daftar tugas yang dibuat oleh siapa saja.
- Login: Masuk menggunakan akun yang sudah terdaftar.
- Register: Daftar untuk membuat akun baru.
- Logout: Keluar dari akun yang sedang aktif.
- Daftar Tugas: Buat dan lihat tugas yang Anda buat atau tugas orang lain.
- Express.js: Framework untuk Node.js yang digunakan untuk membangun backend aplikasi.
- PostgreSQL: Sistem manajemen database relasional yang digunakan untuk menyimpan data pengguna dan daftar tugas.
- HTMX: Library JavaScript untuk membangun aplikasi web interaktif dengan sedikit kode JavaScript.
Sebelum menjalankan aplikasi ini, pastikan Anda telah menginstal:
-
Clone repositori ini ke mesin lokal Anda:
git clone https://github.com/triliun/OpenTodo.git cd OpenTodo
-
Install dependensi aplikasi:
npm install
-
Buat database PostgreSQL menggunakan file
query.sql
. -
Sesuaikan konfigurasi di file
.env
:DB_USER=yourusername DB_HOST=localhost DB_NAME=OpenTodo DB_PASS=yourpass DB_PORT=5432 PORT=3000 JWT_SECRET=yoursecret NODE_ENV=development
-
Jalankan aplikasi:
npm start
Aplikasi akan berjalan di http://localhost:3000
.
- Daftar akun baru dengan menekan tombol plus di atas kanan.
- Login dengan akun yang sudah terdaftar.
- Setelah login, Anda dapat membuat daftar tugas pribadi dan daftar tugas dapat di lihat pengguna lain.
- Logout untuk keluar dari aplikasi.
Jika Anda ingin berkontribusi pada proyek ini, silakan buat pull request. Pastikan untuk mengikuti panduan pengembangan yang disarankan.