markdown Copy code
This project implements a simple Todo List application using PostgreSQL for the database, Express for the backend, and Node.js.
- Create a Todo: Allows users to add new tasks to the list.
- Update a Todo: Enables users to modify existing tasks.
- Delete a Todo: Allows users to remove tasks.
- Get a Single Todo: Retrieves a specific task by its ID.
- Get All Todos: Retrieves the entire list of tasks.
- Node.js installed
- PostgreSQL database instance
- Clone the repository:
git clone https://github.com/furqan-abid/todoList-using-PostgreSQL-Express-Nodejs-By-Furqan.git
- Navigate to the project directory:
- cd todoList-using-PostgreSQL-Express-Nodejs-By-Furqan
- Install dependencies:
npm install
- Set up environment variables: Create a .env file in the project server/config/config.env and add the following:
- DB_USER_NAME=your_postgres_username
- DB_PASSWORD=your_postgres_password
- DB_HOST=your_postgres_host
- DB_PORT=your_port
- DB_NAME=your_database_name
- Run the application:
npm run dev
Contributors @furqan-abid