Skip to content

Manage your tasks efficiently with the To-Do List App. This Node.js and MongoDB-powered application provides a seamless task management experience, helping you stay organized and focused.

Notifications You must be signed in to change notification settings

AmanKumarSinhaGitHub/To-Do-List-App

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

To-Do List App ⭐

The To-Do List App is a Node.js, Express, MongoDB, and EJS templating engine-based application designed to help users efficiently manage their tasks.

Click Here to Open To-Do List App

Todo App Preview

Prerequisites

Before running this project, ensure you have the following installed:

Installation

Follow these steps to set up the application:

  1. Clone the repository to your local machine:

    git clone https://github.com/AmanKumarSinhaGitHub/To-Do-List-App.git
  2. Navigate to the project directory:

    cd To-Do-List-App
  3. Install the required dependencies:

    npm install
  4. Install additional packages:

    npm install mongoose lodash

Get Started

To run the To-Do List App, perform the following actions:

  1. Open a new PowerShell window.

  2. Start MongoDB:

    mongod
  3. Open another PowerShell window.

  4. Launch the MongoDB shell:

    mongosh
  5. Navigate to the project directory:

    cd To-Do-List-App
  6. Start the application using nodemon:

    nodemon .\app.js

    Note: If you encounter a "nodemon not recognized" error, install nodemon globally:

    npm install -g nodemon
  7. Open a web browser and navigate to localhost:3000 to access the application.

Important: ⚠️

Set up backend connection locally:

  • If running this project locally, uncomment the following code in app.js:

    mongoose.connect("mongodb://127.0.0.1:27017/todolistDB");

    And comment out the below code in app.js:

    // const DB = process.env.DATABASE;
    // mongoose.connect(DB)

Usage

  • Home Page (http://localhost:3000): Default page showing the "Today" list. Add new items by typing in the input field and clicking the "+" button.

  • Custom Lists: Create custom lists by adding a name in the URL (e.g., http://localhost:3000/work). Add items and access the list using the specified name.

  • Deleting Items: Click the checkbox next to an item to mark it as completed and automatically remove it from the list.

  • About Page (http://localhost:3000/about): Information about the To-Do List application.

Project Structure

  • app.js: Main entry point of the application. Configures the server, sets up routes, and connects to the database.

    Models:

    • Item: Model for individual to-do list items.
    • List: Model for custom lists.
  • public: Directory containing static files such as CSS stylesheets.

    • styles.css: CSS stylesheets for the application.
  • views: Directory containing EJS templates used to render HTML pages.

    • header.ejs: Header template included in other EJS files.
    • footer.ejs: Footer template included in other EJS files.
    • list.ejs: Template for the to-do list page.
    • about.ejs: Template for the about page.

Contributing

Contributions are welcome! Please follow the steps below to contribute to the project:

  1. Fork the repository.

  2. Create a new branch for your feature or bug fix:

    git checkout -b feature/your-feature-name
  3. Make your changes and commit them:

    git add .
    git commit -m "Add your meaningful commit message"
  4. Push your changes to your forked repository:

    git push origin feature/your-feature-name
  5. Open a pull request on the original repository.

Code Style Guidelines

  • Follow the existing code style and structure.

  • Write meaningful commit messages.

Bug Reporting

If you encounter any bugs or issues, please open an issue with a detailed description of the problem, steps to reproduce, and your system/environment information.

Acknowledgments

This project was created using Node.js, Express, MongoDB, and the EJS templating engine. Special thanks to the authors and contributors of these technologies.

🚀 About Me

I'm a final-year BCA undergraduate and a full-stack developer.

Contact Details

Checkout my new TO DO LIST app in REACT

About

Manage your tasks efficiently with the To-Do List App. This Node.js and MongoDB-powered application provides a seamless task management experience, helping you stay organized and focused.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages