{"id":23873322,"url":"https://github.com/manuelruff/home_tiff","last_synced_at":"2026-06-12T14:30:18.944Z","repository":{"id":270754201,"uuid":"911330370","full_name":"manuelruff/HOME_TIFF","owner":"manuelruff","description":"tiff home assignment","archived":false,"fork":false,"pushed_at":"2025-01-17T09:24:27.000Z","size":379,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-17T10:27:21.565Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/manuelruff.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,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2025-01-02T19:03:23.000Z","updated_at":"2025-01-17T09:24:29.000Z","dependencies_parsed_at":"2025-01-02T21:33:42.652Z","dependency_job_id":"7f0bd66d-51d7-4a21-ae02-08ee6cb2136f","html_url":"https://github.com/manuelruff/HOME_TIFF","commit_stats":null,"previous_names":["manuelruff/home_tiff"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/manuelruff%2FHOME_TIFF","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/manuelruff%2FHOME_TIFF/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/manuelruff%2FHOME_TIFF/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/manuelruff%2FHOME_TIFF/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/manuelruff","download_url":"https://codeload.github.com/manuelruff/HOME_TIFF/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240229977,"owners_count":19768597,"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":[],"created_at":"2025-01-03T16:51:20.597Z","updated_at":"2026-06-12T14:30:18.887Z","avatar_url":"https://github.com/manuelruff.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# **To-Do List Site - Tiff Home Assignment**\n\nThis project is a **full-stack to-do list application** built using **React** for the frontend and **Node.js/Express** for the backend, with a **MongoDB Atlas** database and deployment to **AWS Lambda + API Gateway** and **S3** for hosting.\n\n---\n### **Live Site**  \n(site currently down, you can run locally by creating new mongodb connection)\n[Click here to view the live site](http://manu-todo-client.s3-website.eu-central-1.amazonaws.com/)\n\n## **Project Overview**\n\nA simple and functional to-do list web application where users can:\n- Register and log in with their accounts.\n- Create, update, delete, and list tasks.\n- Mark tasks as completed or pending.\n- Toggle to hide completed tasks.\n\n---\n\n## **Installation**\n\n**Clone the repositry:**\n   ```bash\n   git clone \"https://github.com/manuelruff/HOME_TIFF.git\"\n   ```\n**Open the project in your favorite editor**\n\n\n## **Frontend Setup**\n\n1. **Navigate to the frontend directory:**\n   ```bash\n   cd client\n   ```\n\n2. **Install dependencies:**\n   ```bash\n   npm install\n   ```\n\n3. **Create `.env` in the `client` directory:**\n   ```bash\n   REACT_APP_API_URL=http://localhost:5000/api\n   ```\n\n4. **Start the frontend locally:**\n   ```bash\n   npm start\n   ```\n\n---\n\n## **Backend Setup**\n\n1. **Navigate to the backend directory:**\n   ```bash\n   cd server\n   ```\n\n2. **Install dependencies:**\n   ```bash\n   npm install\n   ```\n\n3. **Create `.env` in the `server` directory:**\n   ```bash\n   MONGO_URI=mongodb+srv://manuelr:Manuel1969@todolist.ikcih.mongodb.net/todo?retryWrites=true\u0026w=majority\u0026appName=ToDoList\n   PORT=5000\n   ```\n    #### you can change the MONGO_URI to your db\n\n4. **Run the backend locally:**\n   ```bash\n   node index.js\n   ```\n   Your server will be running at `http://localhost:5000`.\n\n---\n\n## **API Endpoints**\n\n### **User Routes (`/api/users/`)**\n- **POST /users**: Register a new user.\n- **POST /users/login**: Log in a user.\n- i left some as a note for debugging if needed\n  \n### **Task Routes (`/api/tasks/`)**\n- **POST /tasks**: Add a new task.\n- **GET /tasks?username=\u003cusername\u003e**: Get tasks for the user.\n- **PUT /tasks/:id**: Update a task.\n- **DELETE /tasks/:id**: Delete a task.\n\n---\n\n## **Usage**\n\n### **Postman Requests:**\n\n1. **Registration Request**:\n   - URL: `http://localhost:5000/api/users`\n   - Method: `POST`\n   - Body (JSON):\n     ```json\n     {\n       \"name\": \"example_user\",\n       \"password\": \"example_password\"\n     }\n     ```\n\n2. **Login Request**:\n   - URL: `http://localhost:5000/api/users/login`\n   - Method: `POST`\n   - Body (JSON):\n     ```json\n     {\n       \"name\": \"example_user\",\n       \"password\": \"example_password\"\n     }\n     ```\n\n3. **Get All Tasks for a User:**\n   - URL: `http://localhost:5000/api/tasks?username=example_user`\n   - Method: `GET`\n\n4. **Add a Task:**\n   - URL: `http://localhost:5000/api/tasks`\n   - Method: `POST`\n   - Body (JSON):\n     ```json\n     {\n       \"title\": \"New Task\",\n       \"username\": \"example_user\"\n     }\n     ```\n\n5. **Update a Task:**\n   - **URL**: `http://localhost:5000/api/tasks/{taskId}`\n   - **Method**: `PUT`\n   - **Body (JSON)**:\n     ```json\n     {\n       \"title\": \"Updated Task Title\",\n       \"completed\": true\n     }\n     ```\n\n6. **Delete a Task:**\n   - **URL**: `http://localhost:5000/api/tasks/{taskId}`\n   - **Method**: `DELETE`\n\n\n---\n\n## **Future Improvements**\n- Add JWT-based authentication for better security.\n---\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmanuelruff%2Fhome_tiff","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmanuelruff%2Fhome_tiff","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmanuelruff%2Fhome_tiff/lists"}