mirror of
https://github.com/SkyLinkHostingLLC/Website-V3.git
synced 2026-02-22 00:12:21 -05:00
No description
| public | ||
| src | ||
| .gitignore | ||
| eslint.config.js | ||
| index.html | ||
| package-lock.json | ||
| package.json | ||
| postcss.config.js | ||
| README.md | ||
| tailwind.config.js | ||
| vite.config.js | ||
GameZone Hosting Template Setup Guide
Prerequisites
Before starting, ensure you have installed:
- Visual Studio Code (VS Code)
- Node.js and npm (Node Package Manager) [https://docs.npmjs.com/downloading-and-installing-node-js-and-npm]
Step-by-Step Setup Instructions
1. Open Project in VS Code
- Open VS Code
- Go to File > Open Folder
- Navigate to and select your GameZone template folder
- Click "Select Folder"
2. Install Dependencies
- Open VS Code's integrated terminal:
- Press
Ctrl +(Windows/Linux) orCmd +(Mac), OR - Go to View > Terminal
- Press
- In the terminal, enter:
npm install - Wait for the installation to complete (this may take a few minutes)
3. Start the Development Server
- In the same terminal, enter:
npm run dev - Your default web browser will automatically open with your website
- The site will be running at
http://localhost:3000by default if your using npm
What to Expect
- After
npm install: You'll see a progress bar and package installation messages - After
npm run dev:- Terminal will show compilation progress
- Browser will open automatically
- Any code changes will trigger automatic page updates
Building for Production
When you're ready to deploy your website:
- In the terminal, run:
npm run build - This will create a
distorbuildfolder containing your production-ready website files - Upload the entire contents of this folder to your web hosting provider's root directory
Important Build Tips:
- Always create a backup of your source code before building
- Keep a copy of each production build in case you need to revert changes
- Store builds in separate dated folders (e.g.,
builds/2024-05-11/) - Test the built website thoroughly before deploying
- Consider using version control (like Git) to track changes
Troubleshooting
If you encounter any issues:
- Ensure you're in the correct folder in the terminal
- Try closing VS Code and reopening it
- Check if Node.js is properly installed by running
node --version - If packages fail to install, try deleting the
node_modulesfolder and runningnpm installagain
Notes
- If installing on a web server, you'll need to create an
.htaccessfile. - If installing on a VPS, ensure your Nginx configuration for the site is set to direct requests to
index.html.
Need Additional Help?
Contact me at:
- Discord: @26BZ