{"id":15200037,"url":"https://github.com/nevinmathew/countdown-timer","last_synced_at":"2026-01-21T13:33:27.834Z","repository":{"id":231896074,"uuid":"782980771","full_name":"nevinmathew/Countdown-Timer","owner":"nevinmathew","description":null,"archived":false,"fork":false,"pushed_at":"2024-05-07T16:30:06.000Z","size":21,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-16T10:44:21.135Z","etag":null,"topics":["babel","javascript","react","redux-toolkit","vite","webpack"],"latest_commit_sha":null,"homepage":"","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/nevinmathew.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":"2024-04-06T15:45:56.000Z","updated_at":"2024-05-07T16:30:10.000Z","dependencies_parsed_at":"2024-05-07T17:31:36.589Z","dependency_job_id":"3f79ae29-d40a-42ac-a55f-11873889232f","html_url":"https://github.com/nevinmathew/Countdown-Timer","commit_stats":{"total_commits":10,"total_committers":2,"mean_commits":5.0,"dds":"0.30000000000000004","last_synced_commit":"3d9a48ee768b5f0df49930470b8a23a3f2d400a8"},"previous_names":["nevinmathew/countdown-timer"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nevinmathew%2FCountdown-Timer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nevinmathew%2FCountdown-Timer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nevinmathew%2FCountdown-Timer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nevinmathew%2FCountdown-Timer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nevinmathew","download_url":"https://codeload.github.com/nevinmathew/Countdown-Timer/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248886927,"owners_count":21177777,"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":["babel","javascript","react","redux-toolkit","vite","webpack"],"created_at":"2024-09-28T02:40:23.056Z","updated_at":"2025-04-14T13:23:26.176Z","avatar_url":"https://github.com/nevinmathew.png","language":"JavaScript","readme":"# Countdown Timer\n\nA simple countdown timer built using React and Redux toolkit. This project demonstrates how to create a countdown timer that updates in real-time and persists across page reloads using Redux toolkit for state management. Additionally, the project is configured with Vite for optimized development.\n\n## Features\n\n- Set a target date and time for the countdown.\n- Displays the remaining time in days, hours, minutes, and seconds.\n- Automatically updates the countdown every second.\n- Persists the countdown across page reloads using local storage.\n- Configured with Vite for efficient development.\n\n## Configuration\n\nThe project is configured with Vite for fast and optimized development. The Vite configuration is located in the vite.config.js file and sets up the development server port to 4200.\n\n```javascript\n  import { defineConfig } from 'vite'\n  import react from '@vitejs/plugin-react'\n  \n  export default defineConfig({\n    plugins: [react()],\n    server: {\n      port: 4200,\n    },\n  })\n```\n\n## How It Works\n\nThe countdown timer is implemented using React components and Redux state management. Here's a brief overview of how it works:\n\n- The `Countdown` component is responsible for rendering the countdown UI and updating the current time.\n- Redux toolkit is used to store the target date and current time.\n- The `calculateTimeRemaining` function calculates the time remaining until the target date based on the current time.\n- The `checkAndUpdateTime` function checks if the target date has expired or needs to be updated, and updates it accordingly.\n- The countdown updates every second using setInterval, dispatching actions to update the current time in the Redux store.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnevinmathew%2Fcountdown-timer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnevinmathew%2Fcountdown-timer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnevinmathew%2Fcountdown-timer/lists"}