{"id":21364987,"url":"https://github.com/himanshuraj98/logreader-inito-project","last_synced_at":"2026-04-09T19:54:30.207Z","repository":{"id":181626276,"uuid":"587844074","full_name":"HimanshuRaj98/logreader-inito-project","owner":"HimanshuRaj98","description":"A Dockerized Node.js Application for Logging and Viewing Logs.","archived":false,"fork":false,"pushed_at":"2023-09-14T20:59:52.000Z","size":702,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-22T20:08:34.525Z","etag":null,"topics":["css","docker","express-js","files","git","nodejs","webinterface"],"latest_commit_sha":null,"homepage":"","language":"HTML","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/HimanshuRaj98.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}},"created_at":"2023-01-11T18:08:44.000Z","updated_at":"2023-09-14T21:02:34.000Z","dependencies_parsed_at":"2023-07-16T15:38:19.102Z","dependency_job_id":null,"html_url":"https://github.com/HimanshuRaj98/logreader-inito-project","commit_stats":null,"previous_names":["himanshuraj98/logreader-inito-project"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HimanshuRaj98%2Flogreader-inito-project","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HimanshuRaj98%2Flogreader-inito-project/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HimanshuRaj98%2Flogreader-inito-project/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HimanshuRaj98%2Flogreader-inito-project/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/HimanshuRaj98","download_url":"https://codeload.github.com/HimanshuRaj98/logreader-inito-project/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243839401,"owners_count":20356217,"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","docker","express-js","files","git","nodejs","webinterface"],"created_at":"2024-11-22T07:08:49.968Z","updated_at":"2025-12-30T19:31:42.292Z","avatar_url":"https://github.com/HimanshuRaj98.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Node.js LogReader Inito-Project Application Dockerized\n\nThis repository contains a Node.js application that logs information and allows you to view and add logs through a web interface. You can easily set up and run this application using Docker.\n\n## Prerequisites\n\n- Docker installed on your system. You can download it [here](https://www.docker.com/get-started).\n\n## Setup and Usage\n\n1. Clone this repository to your local machine:\n\n   ```bash\n   git clone https://github.com/HimanshuRaj98/logreader-inito-project.git\n   cd logreader-inito-project\n\n2. Build the Docker image for the application:\n\n   ```bash\n   docker build --tag node-docker .\n\n3. Run the Docker container, mapping port 3000 on your local machine to port 3000 inside the container:\n\n   ```bash\n   docker run -p 3000:3000 node-docker \n   \n4. Once the container is running, you can access the application in your web browser at http://localhost:3000.\n\n\n## Application Routes\n\nThis repository contains a Node.js application with the following routes:\n\n- `/`: View existing logs.\n- `/addLogs`: Add new logs.\n- `/styleAddLogs.css`: CSS file for the \"Add Logs\" page.\n- `/styleViewLogs.css`: CSS file for the \"View Logs\" page.\n- `/getLogs`: Retrieve and display the logged information.\n- `/writeLogs`: Write new logs to the file.\n\n## Adding Logs\n\nTo add logs, you can use the `/addLogs` route of the application. Provide the log details in the query parameters:\n\n## Parameters\n\nWhen adding logs using the `/addLogs` route, you need to provide the following parameters:\n\n- `status`: Log status (e.g., INFO, ERROR).\n- `operation`: Operation or event description.\n- `message`: Log message content.\n\nLogs will be appended to the file.txt file within the container.\n\nThese parameters allow you to specify the details for the logs that you want to add. For example:\n\n**Example:**\n\n```plaintext\nhttp://localhost:3000/addLogs?status=INFO\u0026operation=Login\u0026message=User%20logged%20in\n```\n\n\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhimanshuraj98%2Flogreader-inito-project","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhimanshuraj98%2Flogreader-inito-project","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhimanshuraj98%2Flogreader-inito-project/lists"}