This guide covers multiple FREE hosting options to deploy your Markdown Viewer Pro application.
- Option 1: Vercel (Recommended)
- Option 2: Netlify
- Option 3: GitHub Pages
- Option 4: Cloudflare Pages
- Option 5: Render
- Comparison Table
Why Vercel?
- Fastest deployment (< 1 minute)
- Automatic HTTPS
- Free custom domain support
- Excellent performance
- Zero configuration needed
-
Install Vercel CLI (if not already installed):
npm install -g vercel
-
Deploy from your project directory:
cd /Users/praxlannister/Documents/Project\ Workspace/markdown-viewer-app vercel
-
Follow the prompts:
- Set up and deploy? Yes
- Which scope? Select your account
- Link to existing project? No
- Project name?
markdown-viewer-app(or your choice) - Directory?
./(current directory) - Override settings? No
-
Done! 🎉
- Production URL:
https://markdown-viewer-app.vercel.app - You'll get a unique URL immediately
- Production URL:
vercel --prodvercel domains add yourdomain.comWhy Netlify?
- Simple drag-and-drop deployment
- Free subdomain
- Continuous deployment from Git
- Built-in forms and functions
-
Install Netlify CLI:
npm install -g netlify-cli
-
Login:
netlify login
-
Deploy:
cd /Users/praxlannister/Documents/Project\ Workspace/markdown-viewer-app netlify deploy --prod
-
Follow prompts:
- Create & configure a new site
- Site name:
markdown-viewer-app(or your choice) - Deploy path:
./(current directory)
- Go to https://app.netlify.com
- Sign up / Login with GitHub
- Click "Add new site" → "Import an existing project"
- Connect to GitHub and select
markdown-viewer-apprepository - Build settings:
- Build command: (leave empty)
- Publish directory:
./
- Click "Deploy site"
Live URL: https://markdown-viewer-app.netlify.app
Why GitHub Pages?
- Free with GitHub account
- Already connected to your repository
- Simple setup
- Custom domain support
-
Enable GitHub Pages:
# Your code is already pushed to GitHub # Go to: https://github.com/PrakharMNNIT/markdown-viewer-app/settings/pages
-
Configure Source:
- Go to Settings → Pages
- Source: Deploy from a branch
- Branch:
main - Folder:
/ (root) - Click Save
-
Wait 1-2 minutes for deployment
-
Access your site:
https://prakharmnnit.github.io/markdown-viewer-app/
-
Go to Settings → Pages
-
Add custom domain:
yourdomain.com -
Add DNS records:
A record: 185.199.108.153 A record: 185.199.109.153 A record: 185.199.110.153 A record: 185.199.111.153 -
Enable "Enforce HTTPS"
Why Cloudflare Pages?
- Fastest global CDN
- Unlimited bandwidth
- Free SSL
- Advanced security features
- Go to https://pages.cloudflare.com
- Sign up / Login
- Click "Create a project"
- Connect to GitHub
- Select
markdown-viewer-apprepository - Build settings:
- Build command: (leave empty)
- Build output directory:
/
- Click "Save and Deploy"
Live URL: https://markdown-viewer-app.pages.dev
Why Render?
- Free tier with no credit card
- Auto-deploy on git push
- Custom domains
- Go to https://render.com
- Sign up / Login with GitHub
- Click "New" → "Static Site"
- Connect
markdown-viewer-apprepository - Settings:
- Name:
markdown-viewer-app - Build command: (leave empty)
- Publish directory:
.
- Name:
- Click "Create Static Site"
Live URL: https://markdown-viewer-app.onrender.com
| Platform | Setup Time | Free Tier | Custom Domain | Auto Deploy | Speed | CDN |
|---|---|---|---|---|---|---|
| Vercel | ⚡ 1 min | ✅ Generous | ✅ Free | ✅ Yes | ⚡⚡⚡ | ✅ Global |
| Netlify | 2 min | ✅ Good | ✅ Free | ✅ Yes | ⚡⚡⚡ | ✅ Global |
| GitHub Pages | 3 min | ✅ Unlimited | ✅ Free | ✅ Yes | ⚡⚡ | ✅ GitHub |
| Cloudflare | 3 min | ✅ Unlimited | ✅ Free | ✅ Yes | ⚡⚡⚡ | ✅ Best |
| Render | 4 min | ✅ Limited | ✅ Paid | ✅ Yes | ⚡ | ✅ Yes |
Use Vercel - One command, instant deployment
npm install -g vercel
vercelUse GitHub Pages - Already connected, no extra signup
Use Cloudflare Pages - Best CDN, fastest global delivery
After deployment, verify:
- ✅ Site loads correctly
- ✅ All themes work
- ✅ View mode buttons function
- ✅ Mermaid diagrams render
- ✅ Code syntax highlighting works
- ✅ Export feature functions
- ✅ LocalStorage persistence works
- ✅ Mobile responsive design
This app doesn't require any environment variables! 🎉
Everything runs client-side with no backend needed.
cd /Users/praxlannister/Documents/Project\ Workspace/markdown-viewer-app
vercel --prodcd /Users/praxlannister/Documents/Project\ Workspace/markdown-viewer-app
netlify deploy --prodgit push origin main
# Automatically deploysSolution: Check if all files are committed and pushed to GitHub
Solution: Ensure index.html is in root directory
Solution: Check if style.css and theme files are accessible
Solution: Verify script.js is loaded correctly
Your Markdown Viewer Pro is now live and accessible worldwide!
Share your deployment:
- Production URL:
https://your-app-name.platform.app - GitHub:
https://github.com/PrakharMNNIT/markdown-viewer-app
Test your deployment on:
- iOS Safari
- Android Chrome
- Mobile Firefox
All view modes should work responsively!
With Vercel, Netlify, or GitHub Pages, every git push automatically deploys:
git add .
git commit -m "✨ feat: new feature"
git push origin main
# Automatically deploys in 30-60 seconds!- Use Vercel for speed - Fastest deployment and best DX
- Use GitHub Pages for simplicity - Already integrated
- Use Cloudflare for scale - Best for high traffic
- Add custom domain - Looks more professional
- Enable HTTPS - All platforms provide free SSL
- Monitor analytics - Use built-in analytics on Vercel/Netlify
Need Help? Open an issue on GitHub: https://github.com/PrakharMNNIT/markdown-viewer-app/issues
Deployed with ❤️ by Prax Lannister