{"id":18761752,"url":"https://github.com/anonymousknight07/todo_app","last_synced_at":"2026-04-11T03:06:11.243Z","repository":{"id":219346991,"uuid":"740911650","full_name":"anonymousknight07/Todo_app","owner":"anonymousknight07","description":"This is a very simple to do app ","archived":false,"fork":false,"pushed_at":"2024-01-26T19:20:47.000Z","size":88,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-12-29T04:55:41.365Z","etag":null,"topics":["css","ejs","eslint-config","javascript","json","nodejs"],"latest_commit_sha":null,"homepage":"https://todo-app-tgmg.onrender.com","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/anonymousknight07.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2024-01-09T10:20:51.000Z","updated_at":"2024-01-26T19:23:43.000Z","dependencies_parsed_at":"2024-01-26T21:41:46.750Z","dependency_job_id":null,"html_url":"https://github.com/anonymousknight07/Todo_app","commit_stats":null,"previous_names":["anonymousknight07/todo_app"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anonymousknight07%2FTodo_app","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anonymousknight07%2FTodo_app/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anonymousknight07%2FTodo_app/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anonymousknight07%2FTodo_app/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/anonymousknight07","download_url":"https://codeload.github.com/anonymousknight07/Todo_app/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239655131,"owners_count":19675360,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["css","ejs","eslint-config","javascript","json","nodejs"],"created_at":"2024-11-07T18:17:35.687Z","updated_at":"2025-12-04T06:30:15.459Z","avatar_url":"https://github.com/anonymousknight07.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Todo App\n\nWelcome to the Todo App! This is a user-friendly web application built with Node.js and Express, designed to help you efficiently manage your tasks.\n\n## Getting Started\n\n### Prerequisites\n\nMake sure you have Node.js and npm installed on your machine.\n\n### Installation\n\n1. **Clone the Repository:**\n```bash \n   git clone https://github.com/your-username/todo-app.git\n```\n\n2. **Change into the Project Directory:**\n```bash\n  cd todo-app\n```\n    \n3. **Install Dependencies:**\n    \n```bash\n  npm install\n```\n    \n4. **Start the Application on Port 3000:**\n```bash\n   npm start\n```\n    \n5. **Additional Scripts:**\n```bash\n  npm test    # Run tests (uses the test database) \n  npm run dev # Run a dev server (uses the development database)`\n```\n    \n\n### Features\n\n- User authentication with Passport.js\n- Secure password storage using bcrypt\n- Sequelize ORM for PostgreSQL database interactions\n- Jest for running tests\n\n### Dependencies\n\n- bcrypt: Password hashing library\n- cheerio: HTML parsing and manipulation\n- connect-ensure-login: Ensures a user is logged in\n- connect-flash: Flash messages for Express\n- cookie-parser: Parse cookies in Express\n- csurf: CSRF token middleware\n- ejs: Embedded JavaScript templates\n- express: Web application framework for Node.js\n- express-session: Session middleware for Express\n- passport: Authentication middleware for Node.js\n- passport-local: Local authentication strategy for Passport\n- pg: PostgreSQL client for Node.js\n- sequelize: Promise-based ORM for Node.js\n- tiny-csrf: Lightweight CSRF token middleware\n\n### Database Setup\n\nTo set up the database for the Todo App, follow these steps:\n\n1. **Install PostgreSQL:**\n    \n    - Download and install PostgreSQL from the official website.\n\n2. **Configure Database Connection:**\n- Open the config/config.json file in your Todo App project.\n- Update the development configuration with your PostgreSQL credentials:\n\n```\n{\n  \"development\": {\n    \"username\": \"your_postgresql_username\",\n    \"password\": \"your_postgresql_password\",\n    \"database\": \"your_database_name\",\n    \"host\": \"127.0.0.1\",\n    \"dialect\": \"postgres\"\n  }\n}\nUpdate the production and testing database details similarly.\n```\n\n3. **Run Migrations:**\n    \n    - Open a terminal in your project directory.\n    - Run the following command to apply the database migrations:\n```bash\n    npx sequelize-cli db:migrate\n```\n        \n4. **Start the Application:**\n    \n    - After configuring the database, start your Todo App with:\n        \n```bash\n   npm start\n```\n        \n\nRemember to replace placeholders like `your_postgresql_username`, `your_postgresql_password`, and `your_database_name` with your actual PostgreSQL credentials. If you encounter any issues, ensure PostgreSQL is running, and your credentials are correctly configured.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanonymousknight07%2Ftodo_app","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fanonymousknight07%2Ftodo_app","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanonymousknight07%2Ftodo_app/lists"}