File: start-growcraft.bat
Requirements: PHP installed on your system
Features:
- β Full PHP backend support
- β Contact form functionality
- β File upload handling
- β Database connectivity
Usage:
- Double-click
start-growcraft.bat - The server will start at
http://localhost:8080 - Your default browser should automatically open to the project
PHP Installation:
- Option 1: Download PHP from php.net
- Option 2: Install XAMPP from apachefriends.org
File: start-growcraft-static.bat
Requirements: Python (optional, falls back to direct file opening)
Features:
- β View all static content
- β Contact form won't work
- β No PHP backend features
Usage:
- Double-click
start-growcraft-static.bat - With Python: Server at
http://localhost:8000 - Without Python: Opens
index.htmldirectly
- Install PHP or XAMPP
- Add PHP to your system PATH
- Restart command prompt and try again
- The static batch file will fall back to opening the HTML file directly
- For better experience, install Python from python.org
- Stop any other web servers running on ports 8080 or 8000
- Or modify the port numbers in the batch files
cd "c:\Users\bikra\code\Github\GrowCraft"
php -S localhost:8080cd "c:\Users\bikra\code\Github\GrowCraft"
python -m http.server 8000cd "c:\Users\bikra\code\Github\GrowCraft"
npx serve -s . -l 3000- Homepage:
http://localhost:8080(or respective port) - Contact:
http://localhost:8080/src/contact.html - Blog:
http://localhost:8080/blogListing.html - Services: Check navigation menu for all service pages
- Press
Ctrl+Cin the command window to stop the server - The batch files will show clear instructions and error messages
- All static assets (CSS, JS, images) are served correctly
- Both batch files include automatic error checking and user guidance