{"id":50806741,"url":"https://github.com/mikechiloane/web-event-collector","last_synced_at":"2026-06-13T02:04:36.543Z","repository":{"id":299857031,"uuid":"1004426985","full_name":"mikechiloane/web-event-collector","owner":"mikechiloane","description":"This service is responsible for persisting web events sent from a FE using the recceda web event tracker","archived":false,"fork":false,"pushed_at":"2025-06-18T16:34:50.000Z","size":17,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-06-18T17:38:03.684Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Java","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/mikechiloane.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,"zenodo":null}},"created_at":"2025-06-18T15:51:56.000Z","updated_at":"2025-06-18T16:34:54.000Z","dependencies_parsed_at":"2025-06-18T17:39:36.609Z","dependency_job_id":"1652dea6-8727-4b54-abe4-84e7836f54d4","html_url":"https://github.com/mikechiloane/web-event-collector","commit_stats":null,"previous_names":["mikechiloane/web-event-collector"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/mikechiloane/web-event-collector","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mikechiloane%2Fweb-event-collector","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mikechiloane%2Fweb-event-collector/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mikechiloane%2Fweb-event-collector/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mikechiloane%2Fweb-event-collector/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mikechiloane","download_url":"https://codeload.github.com/mikechiloane/web-event-collector/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mikechiloane%2Fweb-event-collector/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34269365,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-13T02:00:06.617Z","response_time":62,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":"2026-06-13T02:04:35.924Z","updated_at":"2026-06-13T02:04:36.531Z","avatar_url":"https://github.com/mikechiloane.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Web Event Collector\n\n## Purpose\n\n**Web Event Collector** is a Spring Boot application designed to collect, track, and store web events (such as user actions, page visits, and downloads) in a MongoDB database. It provides a REST API endpoint for tracking events, making it suitable for analytics, auditing, or user behavior tracking on web applications.\n\n## Features\n\n- REST API for tracking web events\n- Stores events in MongoDB\n- Detects specific actions (e.g., \"Download CV\")\n- CORS enabled for cross-origin requests\n\n## Prerequisites\n\n- Java 21+\n- Maven 3.9+\n- MongoDB instance (local or remote)\n- (Optional) Docker, if you want to run with containers\n\n## Setup\n\n### 1. Clone the Repository\n\n```sh\ngit clone \u003cyour-repo-url\u003e\ncd web-event-collector\n```\n\n### 2. Configure Environment Variables\n\nCreate a `.env` file or set the following environment variables:\n\n- `MONGO_DB_NAME` - Name of your MongoDB database\n- `MONGO_DB_URI` - MongoDB connection URI (e.g., `mongodb://localhost:27017`)\n\nAlternatively, you can edit `src/main/resources/application.yaml` to hardcode values (not recommended for production).\n\n### 3. Build the Project\n\n```sh\n./mvnw clean package\n```\n\n### 4. Run the Application\n\n```sh\n./mvnw spring-boot:run\n```\n\nOr run the packaged JAR:\n\n```sh\njava -jar target/web-event-collector-1.0.0.jar\n```\n\nThe application will start on port `8080` by default.\n\n### 5. API Usage\n\n- **Track Event:**  \n  `POST /api/track/event`  \n  Send a JSON payload representing a `WebEvent`.\n\n### 6. Running with Docker\n\nBuild and run the Docker image:\n\n```sh\ndocker build -t web-event-collector .\ndocker run -e MONGO_DB_NAME=\u003cyour-db\u003e -e MONGO_DB_URI=\u003cyour-uri\u003e -p 8080:8080 web-event-collector\n```\n\n## Project Structure\n\n- `src/main/java/com/recceda/webeventcollector/` - Main application code\n- `src/main/resources/application.yaml` - Application configuration\n- `src/test/` - Unit and integration tests\n\n## Contributing\n\n1. Fork the repository\n2. Create a feature branch\n3. Commit your changes\n4. Open a pull request\n\n## License\n\nThis project is licensed under the Apache License 2.0.\n\n---\n\nFor questions or support, please contact the maintainer.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmikechiloane%2Fweb-event-collector","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmikechiloane%2Fweb-event-collector","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmikechiloane%2Fweb-event-collector/lists"}