Prerequisites
Before installing the project, ensure you have the following tools installed on your system:Required: Node.js version 16 or higher is required to run this project.
- Node.js (version 16 or higher) - Download Node.js
- npm (included with Node.js) - Package manager for installing dependencies
- Git (optional) - For cloning the repository
Installation Steps
Clone the Repository
First, clone the RobTop Games Web repository to your local machine:Then navigate into the project directory:
Install Dependencies
Install all required dependencies using npm. This will install Astro and other packages defined in This installs the following key dependencies:
package.json:- astro (^5.12.9) - The core Astro framework
- prettier (^3.6.2) - Code formatter (dev dependency)
- prettier-plugin-astro (^0.14.1) - Astro-specific formatting (dev dependency)
The installation may take a few minutes depending on your internet connection.
Start the Development Server
Launch the development server to run the site locally:The development server will start and display output similar to:
Available Scripts
The project includes several npm scripts defined inpackage.json:
Project Configuration
The Astro configuration is minimal and straightforward. Here’s what’s inastro.config.mjs:
astro.config.mjs
Troubleshooting
Port Already in Use
If port 4321 is already in use, Astro will automatically try the next available port. You can also specify a custom port:Module Not Found Errors
Deletenode_modules and reinstall:
Node Version Issues
Ensure you’re using Node.js 16 or higher:Next Steps
Now that you have the project installed, you’re ready to start exploring:Quick Start Guide
Follow our quick start guide to understand the project structure and create your first page
Components
Explore the reusable components available in the project
