{"id":15132556,"url":"https://github.com/lyfe691/view_counter","last_synced_at":"2026-01-19T04:32:56.771Z","repository":{"id":255076735,"uuid":"848438464","full_name":"lyfe691/View_Counter","owner":"lyfe691","description":"This is a simple web application built with Java, Spring Boot, and Redis. The application increments a counter every time the home page is visited and displays the current visitor count.","archived":false,"fork":false,"pushed_at":"2024-08-27T20:28:58.000Z","size":20,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-12T02:09:52.652Z","etag":null,"topics":["java","redis","redis-client","redis-server","spring-boot","webapp"],"latest_commit_sha":null,"homepage":"https://ysz.life","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/lyfe691.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2024-08-27T18:59:13.000Z","updated_at":"2024-08-28T06:36:08.000Z","dependencies_parsed_at":"2024-08-27T22:29:18.654Z","dependency_job_id":null,"html_url":"https://github.com/lyfe691/View_Counter","commit_stats":null,"previous_names":["lyfe691/view_counter"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lyfe691%2FView_Counter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lyfe691%2FView_Counter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lyfe691%2FView_Counter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lyfe691%2FView_Counter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lyfe691","download_url":"https://codeload.github.com/lyfe691/View_Counter/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247406080,"owners_count":20933803,"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":["java","redis","redis-client","redis-server","spring-boot","webapp"],"created_at":"2024-09-26T04:20:49.145Z","updated_at":"2026-01-19T04:32:56.760Z","avatar_url":"https://github.com/lyfe691.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# Visitor Counter Application\n\nThis is a simple web application built with Java, Spring Boot, and Redis. The application increments a counter every time the home page is visited and displays the current visitor count.\n\n## Features\n\n- **Visitor Counter**: Increments and displays the number of visits to the home page.\n- **Redis Integration**: Uses Redis to store and manage the visitor count, ensuring persistence across application restarts.\n- **Spring Boot**: The application is built using Spring Boot, making it easy to run and deploy.\n\n## Prerequisites\n\nBefore you begin, ensure you have the following installed on your system:\n\n- **Java 11** or higher\n- **Maven** for dependency management and running the application\n- **Redis** server\n\n## Getting Started\n\n### 1. Clone the Repository\n\n```bash\ngit clone https://github.com/lyfe691/View_Counter.git\ncd View_Counter\n```\n\n### 2. Configure Redis\n\nMake sure Redis is installed and running on your machine. The application is configured to connect to Redis on `localhost` at port `6379` by default.\n\u003chr\u003e\nIf you dont have redis installed do this:\n\n#### For Windows\nYou can't run redis on default on windows, you'll have to use a VM or the Windows Subsystem for Linux (WSL). This is how you can install it:\n\n1. **Powershell (Administator)** Run this and restart.\n```bash\nwsl --install\n```\n2. Now that you have WSL installed you can open your terminal and open a new tab as ubuntu or type ```wsl``` and enter the following commands:\n```bash\nsudo apt-get update\nsudo apt-get install redis\n```\n3. **Start Redis**\n```bash\nredis-server\n```\n#### For MacOS\n1. **Install Homebrew**\n```bash\n/bin/bash -c \"$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)\"\n```\n2. **Install Redis**\n```bash\nbrew install redis\n```\n3. **Start Redis**\n```bash\nbrew services start redis\n```\n#### For Linux\n1. **Install Redis**\n```bash\nsudo apt-get update\nsudo apt-get install redis\n```\n2. **Start Redis**\n```bash\nredis-server\n```\n### 3. Build the Application\n\nCompile and package the application using Maven:\n\n```bash\nmvn clean install\n```\n\n### 4. Run the Application\n\nStart the Spring Boot application:\n\n```bash\nmvn spring-boot:run\n```\n\n### 5. Access the Application\n\nOpen your web browser and go to:\n\n```\nhttp://localhost:8080\n```\n\nEach time you refresh the page, the visitor counter will increment.\n\n## Project Structure\n\n```plaintext\nView_Counter/\n│\n├── src/\n│   ├── main/\n│   │   ├── java/\n│   │   │   └── com/redis/visitorcounter/\n│   │   │       ├── VisitorCounterApplication.java  # Main application class\n│   │   │       └── VisitorCounterController.java   # Controller handling the visitor count\n│   │   └── resources/\n│   │       └── application.properties              # Redis configuration\n│   └── test/                                       # Unit tests (if any)\n│\n├── pom.xml                                         # Maven build file\n└── README.md                                       # Project documentation\n```\n\n## Technologies Used\n\n- **Java**\n- **Spring Boot**\n- **Redis**\n- **Maven**\n\n## License\n\nThis project is licensed under the MIT License. See the \u003ca href=\"https://github.com/lyfe691/View_Counter?tab=MIT-1-ov-file\"\u003eLICENSE\u003c/a\u003e file for details.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flyfe691%2Fview_counter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flyfe691%2Fview_counter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flyfe691%2Fview_counter/lists"}