Prerequisites
Before you begin, ensure you have the following installed:- Node.js (v18 or higher)
- pnpm (recommended package manager)
If you don’t have pnpm installed, you can install it globally with
npm install -g pnpmInstallation
Install dependencies
Install all required packages using pnpm:This will install the following key dependencies:
- Astro - The web framework
- React - For interactive components
- Tailwind CSS - For styling
Start the development server
Launch the development server:The application will start at
http://localhost:4321View the application
Open your browser and navigate to http://localhost:4321. You should see the Version Counter dashboard with live countdown timers for all supported games.
What You’ll See
Once the dev server is running, you’ll see the main dashboard displaying countdown timers for:- Genshin Impact - Current version 6.4, countdown to 6.5
- Honkai Star Rail - Current version 4.0, countdown to 4.1
- Wuthering Waves - Current version 3.1, countdown to 3.2
- Zenless Zone Zero - Current version 2.6, countdown to 2.7
- Real-time countdown to the next version release
- Current and upcoming version numbers
- Version theme and banner image
- Links to official patch notes
Available Scripts
The project includes several npm scripts for different tasks:| Script | Description |
|---|---|
pnpm dev | Starts the development server with hot reload |
pnpm build | Builds the project for production |
pnpm preview | Previews the production build locally |
pnpm astro | Runs Astro CLI commands |
Project Structure
Here’s what you’ll find in the source code:Next Steps
Now that you have Version Counter running locally, you can:- Learn how to add new games to the dashboard
- Explore customizing themes for your games
- Read about deployment options to publish your own instance
The development server includes hot module replacement (HMR), so any changes you make to the source code will automatically reload in your browser.