Deployment Guide
Learn how to deploy your AI agent projects and showcase them
1
Push to GitHub
Create a new repository on GitHub and push your project code.
git init
git add .
git commit -m "Initial commit"
git branch -M main
git remote add origin https://github.com/yourusername/your-repo.git
git push -u origin mainMake sure to add a
.gitignore file to exclude sensitive files2
Add .env Safely
Never commit your .env file to GitHub. Instead, use environment variables in your hosting platform.
# .gitignore
.env
.env.local
__pycache__/
*.pycCreate a
.env.example file with placeholder valuesAdd your actual API keys in your hosting platform's environment variables section
3
Deploy on Netlify or Vercel
Option A: Netlify
- Go to netlify.com and sign in
- Click "Add new site" → "Import an existing project"
- Connect your GitHub repository
- Configure build settings:
Build command: npm run build
Publish directory: .next - Add environment variables in Site settings → Environment variables
- Deploy!
Option B: Vercel
- Go to vercel.com and sign in
- Click "Add New Project"
- Import your GitHub repository
- Vercel auto-detects Next.js settings
- Add environment variables in Project settings
- Deploy!
4
Add Disclaimer & Security
Add important disclaimers and security measures to your project.
README.md Checklist
- Project description and purpose
- Installation instructions
- Environment variables setup
- Usage examples
- Limitations and disclaimers
- License information
Security Best Practices
- Never expose API keys in client-side code
- Use rate limiting for API calls
- Add input validation and sanitization
- Include error handling
- Add logging for debugging
5
Make Portfolio Screenshot
Capture screenshots of your deployed project for your portfolio.
Take screenshots of key features and UI
Create a demo video or GIF (optional but recommended)
Add project to your portfolio website