mirror of
https://github.com/x1xhlol/system-prompts-and-models-of-ai-tools.git
synced 2025-12-16 21:45:14 +00:00
3.7 KiB
3.7 KiB
Installation and Deployment Guide
📋 Prerequisites
- Node.js (version 18 or later)
- Git
- A GitHub account (for GitHub Pages deployment)
🚀 Quick Start
Local Installation
-
Clone the repository:
git clone https://github.com/sahiixx/system-prompts-and-models-of-ai-tools.git cd system-prompts-and-models-of-ai-tools -
Install dependencies:
cd site npm install -
Build the site:
npm run build -
Preview locally:
npm run previewThe site will be available at
http://localhost:8000
Development Mode
For development with auto-rebuild:
npm run dev
🌐 Deployment Options
GitHub Pages (Automatic)
The repository is configured for automatic deployment to GitHub Pages:
-
Enable GitHub Pages:
- Go to your repository Settings → Pages
- Set Source to "GitHub Actions"
-
Trigger Deployment:
- Push to the
mainbranch - Or manually trigger via Actions tab
- Push to the
-
Access your site:
- Your site will be available at:
https://[username].github.io/system-prompts-and-models-of-ai-tools/
- Your site will be available at:
Manual Deployment
Deploy to Vercel
-
Install Vercel CLI:
npm install -g vercel -
Deploy:
cd site npm run build vercel --prod
Deploy to Netlify
-
Build the site:
cd site npm run build -
Upload the
distfolder to Netlify or connect your GitHub repository
Deploy to any static host
-
Build the site:
npm run build -
Upload the contents of
site/distto your web server
🔧 Configuration
Environment Variables
BASE_PATH: Set the base path for deployment (default:/)BASE_PATH=/my-subfolder/ npm run build
Custom Styling
The build script includes embedded CSS. To customize:
- Edit the
generateHTMLfunction insite/build.js - Modify the
<style>section - Rebuild the site
📁 Project Structure
site/
├── package.json # Dependencies and scripts
├── build.js # Static site generator
├── dist/ # Generated site (ignored by git)
│ ├── index.html # Main page
│ └── files/ # Individual file pages
├── .gitignore # Git ignore rules
└── README.md # This file
🛠 Build Process
The build script (build.js) does the following:
- Scans the repository for
.jsonand.mdfiles - Generates an index page with directory structure
- Creates individual pages for each file with syntax highlighting
- Outputs everything to the
dist/directory
🐛 Troubleshooting
Build Fails
- Ensure Node.js is installed:
node --version - Check if all files are readable
- Verify no corrupt JSON files exist
Deployment Issues
- Check that
site/distdirectory exists after build - Verify GitHub Pages is enabled in repository settings
- Check GitHub Actions logs for deployment errors
Local Preview Issues
- Ensure Python is installed for
python -m http.server - Try alternative:
npx serve dist(requiresservepackage)
🔄 Maintenance
Adding New Content
- Add your
.jsonor.mdfiles to any directory - Run
npm run buildto regenerate the site - Deploy using your preferred method
Updating the Site
- Modify
build.jsfor layout changes - Update
package.jsonfor dependency changes - Rebuild and redeploy
📞 Support
- Issues: Open an issue on GitHub
- Discord: Join the community server
- Documentation: Check the main README.md
🎉 Congratulations! Your System Prompts repository is now ready for installation and deployment.