This is a To-Do List App that helps you manage your daily tasks efficiently.
- Persistent Storage: Your tasks remain saved even after refreshing the page.
- Add Tasks – Easily add new to-dos to your list.
- Edit Tasks – Update any existing to-do.
- Mark as Completed – Check the box to remove a completed task.
- Delete All – Remove all tasks with a single click.
- Frontend: EJS, CSS, JavaScript
- Backend: Node.js, Express.js
- Database: PostgreSQL
Open Git Bash or Terminal, then run:
git clone https://github.com/divyanshu3020/To-do-APP.git
cd to-do-app
npm install
-Heads up to queries.sql and run those commands in pgadmin4 to set your database.
In the server.js file, update the database connection details:
const db = new pg.Client({
user: "your_username", //otherwise postgres
password: "your_password",
host: "localhost",
database: "your_database",
port: 5234,
});
npm start
or
nodemon index.js / node index.js
The app will be running on http://localhost:3000 🎉