Skip to content

Ardhaya-Johari/permalist

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Typing SVG

📝 Permalist – A Persistent To-Do Web App

Permalist is a simple yet powerful To-Do List web app built using Node.js, Express, EJS, and PostgreSQL. It lets users manage daily tasks — with functionality to add, edit, and delete items — all stored permanently in a PostgreSQL database.


🚀 Features

  • ✅ Add new tasks
  • 📝 Edit existing tasks inline
  • ❌ Delete tasks via checkbox
  • 📦 PostgreSQL for persistent storage
  • ⚡ Fast and minimalistic interface using EJS templates
  • 🎯 Smooth UX with clear task feedback

🛠️ Tech Stack

Layer Technology
Backend Node.js, Express.js
Database PostgreSQL (pg module)
Frontend EJS, HTML, CSS, JS
Hosting Runs locally on localhost:3000

📁 Project Structure

permalist/
├── public/             # Static assets (CSS, images)
├── views/              # EJS templates
│   ├── index.ejs
│   └── partials/
├── index.js              # Main application server
├── package.json
├── README.md

📦 Getting Started

1. Clone the Repo

git clone https://github.com/your-username/permalist.git
cd permalist

2. Install Dependencies

npm install

3. Set Up PostgreSQL

Ensure PostgreSQL is installed and running.

Create the Database

CREATE DATABASE permalist;

Create the Table

CREATE TABLE items (
  id SERIAL PRIMARY KEY,
  title TEXT NOT NULL
);

4. Configure Your DB Credentials

Open index.js and update this block:

const db = new pg.Client({
  user: "your_pg_username",
  host: "localhost",
  database: "permalist",
  password: "your_pg_password",
  port: 5432,
});

5. Run the App

node index.js

🧠 How It Works

  • / → Displays the list of items from PostgreSQL
  • /add → Adds a new item
  • /edit → Updates an existing item
  • /delete → Removes an item

🔮 Future Ideas

  • ✅ Task due dates and reminders
  • 🧩 User login & personal task lists
  • 📊 Dashboard with task analytics
  • 📱 PWA support for mobile devices

👩‍💻 Author

Ardhaya Johari – Full Stack Developer
📧 [email protected]
🌐 LinkedIn
💻 GitHub

"I drink chai while fixing bugs."


📄 License

MIT License

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published