🚀 NETLIFY DEPLOYMENT GUIDE - MTJ Data Analytics Website
Complete Step-by-Step Instructions for Deploying to Netlify
📋 Prerequisites
Before you begin, make sure you have: - ✅ All website files downloaded (this folder) - ✅ Quarto installed on your computer (https://quarto.org) - ✅ A Netlify account (free - we’ll create one if you don’t have it) - ✅ Optional: GitHub account (for continuous deployment)
🎯 DEPLOYMENT METHOD 1: Drag & Drop (EASIEST - 5 MINUTES)
This is the fastest way to get your website online. Perfect for beginners!
Step 1: Build Your Website
Option A - Using Terminal/Command Prompt: 1. Open Terminal (Mac/Linux) or Command Prompt (Windows) 2. Navigate to your website folder: bash cd /path/to/MTJ_Website 3. Build the website: bash quarto render 4. Wait for it to complete. You’ll see a docs/ folder created.
Option B - Using RStudio: 1. Open RStudio 2. File → Open Project → Select the MTJ_Website folder 3. In the Build pane (top right), click “Render Website” 4. Wait for completion. A docs/ folder will be created.
Option C - Using the R Script: 1. Open R or RStudio 2. Set working directory to the website folder 3. Run: r source("build_website.R") 4. Choose option 1 (Build the website)
Step 2: Create Netlify Account (if you don’t have one)
- Go to: https://www.netlify.com/
- Click “Sign Up” (top right)
- Choose to sign up with:
- Email (recommended)
- GitHub
- GitLab
- Bitbucket
- Complete the registration
- Verify your email address
Step 3: Deploy via Drag & Drop
- Log into Netlify: https://app.netlify.com/
- Go to: https://app.netlify.com/drop
- Drag and drop the ENTIRE
docs/folder onto the page - Wait for the upload to complete (usually 30-60 seconds)
- 🎉 Done! Your website is now live!
Step 4: Get Your Website URL
After deployment: 1. Netlify will show you a URL like: random-name-123456.netlify.app 2. Click on it to view your live website 3. Test all pages to make sure everything works
Step 5: Customize Your Site Name (Optional)
- On your Netlify dashboard, click on your site
- Go to “Site settings”
- Click “Change site name”
- Enter a better name like:
mtjdataanalytics - Your site will now be:
mtjdataanalytics.netlify.app
🎯 DEPLOYMENT METHOD 2: GitHub + Netlify (BEST FOR UPDATES)
This method is better if you plan to update your website regularly. Changes automatically deploy when you push to GitHub.
Step 1: Create GitHub Repository
- Go to: https://github.com
- Sign in or create account
- Click “+” (top right) → “New repository”
- Repository name:
mtj-data-analytics-website - Description: “MTJ Data Analytics Official Website”
- Choose: Public (or Private if you prefer)
- ✅ Check “Add a README file”
- Click “Create repository”
Step 2: Upload Your Files to GitHub
Option A - Using GitHub Web Interface (Easiest): 1. In your new repository, click “Add file” → “Upload files” 2. Drag ALL files from your MTJ_Website folder (except docs/ folder) 3. Files to upload: - All .qmd files (index.qmd, services.qmd, etc.) - _quarto.yml - custom.scss - styles.css - netlify.toml - build_website.R - .gitignore - All .md documentation files - Your logo.png (if you have it) 4. Commit message: “Initial website commit” 5. Click “Commit changes”
Option B - Using Git Command Line:
# Navigate to your website folder
cd /path/to/MTJ_Website
# Initialize git
git init
# Add all files (docs folder is ignored by .gitignore)
git add .
# Commit
git commit -m "Initial website commit"
# Connect to GitHub (replace USERNAME with your GitHub username)
git remote add origin https://github.com/USERNAME/mtj-data-analytics-website.git
# Push to GitHub
git branch -M main
git push -u origin mainStep 3: Connect Netlify to GitHub
- Log into Netlify: https://app.netlify.com/
- Click “Add new site” → “Import an existing project”
- Choose “GitHub”
- Authorize Netlify to access your GitHub (first time only)
- Select your repository:
mtj-data-analytics-website - Configure build settings:
- Base directory: Leave empty
- Build command:
quarto render - Publish directory:
docs
- Click “Deploy site”
Step 4: Wait for Deployment
- Netlify will start building your site (usually 1-3 minutes)
- Watch the deploy log to see progress
- When done, you’ll see “Site is live” with a URL
- Click the URL to view your website
Step 5: Set Up Continuous Deployment
Now, whenever you push changes to GitHub, Netlify automatically rebuilds your site!
To update your website: 1. Edit files on your computer 2. Commit and push to GitHub: bash git add . git commit -m "Update content" git push 3. Netlify automatically rebuilds and deploys!
🌐 CONNECTING YOUR CUSTOM DOMAIN
If you have www.mtjdataanalytics.com or similar
Step 1: Add Domain to Netlify
- In your Netlify site dashboard
- Go to “Domain management” (in the menu)
- Click “Add custom domain”
- Enter your domain:
mtjdataanalytics.com - Click “Verify”
- If you own it, click “Yes, add domain”
Step 2: Configure DNS
Netlify will show you DNS records to add. You have two options:
Option A - Use Netlify DNS (Easiest): 1. Click “Set up Netlify DNS” 2. Netlify will show you nameservers (like ns1.netlify.com) 3. Go to your domain registrar (where you bought the domain) 4. Find DNS/Nameserver settings 5. Replace existing nameservers with Netlify’s nameservers 6. Save changes 7. Wait 24-48 hours for propagation 8. Netlify automatically handles SSL certificate
Option B - Keep Your Current DNS: 1. Go to your domain registrar’s DNS settings 2. Add these DNS records:
For apex domain (mtjdataanalytics.com):
Type: A
Name: @
Value: 75.2.60.5
For www subdomain (www.mtjdataanalytics.com):
Type: CNAME
Name: www
Value: [your-site].netlify.app
- Save changes
- Wait 1-24 hours for DNS propagation
Step 3: Enable HTTPS
- Once DNS is configured, go to “Domain settings”
- Scroll to “HTTPS”
- Click “Verify DNS configuration”
- Click “Provision certificate”
- Wait a few minutes
- ✅ Your site now has HTTPS (secure padlock)!
🔄 UPDATING YOUR WEBSITE
Method 1: If Using Drag & Drop
- Make changes to your
.qmdfiles - Run
quarto renderto rebuild - Go to your Netlify site
- Click “Deploys” tab
- Drag and drop the NEW
docs/folder - New version goes live immediately!
Method 2: If Using GitHub
Make changes to your
.qmdfilesCommit and push to GitHub:
git add . git commit -m "Updated services page" git pushNetlify automatically rebuilds and deploys!
Check the “Deploys” tab to monitor progress
⚙️ NETLIFY CONFIGURATION OPTIONS
Your website includes a netlify.toml file with: - ✅ Build command configured - ✅ Publish directory set - ✅ Security headers - ✅ Caching rules for performance - ✅ Redirect rules
You don’t need to change anything - it’s ready to go!
🎨 CUSTOMIZATION AFTER DEPLOYMENT
Change Site Name
- Site settings → General → Site details
- Click “Change site name”
- Enter new name (e.g., mtjdataanalytics)
- URL becomes: mtjdataanalytics.netlify.app
Environment Variables
If you need to add environment variables later: 1. Site settings → Build & deploy → Environment 2. Click “Edit variables” 3. Add your variables
Deploy Notifications
Get notified when your site deploys: 1. Site settings → Build & deploy → Deploy notifications 2. Add notification (Email, Slack, webhook, etc.)
🐛 TROUBLESHOOTING
Problem: Build fails
Check the build log: 1. Go to “Deploys” tab 2. Click on the failed deploy 3. Read the error message
Common solutions: - Make sure netlify.toml is in your repository - Verify all .qmd files are uploaded - Check that _quarto.yml is present - Ensure Quarto can find all required files
Manual fix: 1. Delete the site in Netlify 2. Fix the issue locally 3. Re-deploy
Problem: Site shows 404 error
Solution: - Make sure you uploaded the docs/ folder (for drag & drop) - Verify publish directory is set to docs (for GitHub) - Check that quarto render completed successfully
Problem: CSS/styling not working
Solution: - Ensure styles.css is in the repository - Check custom.scss is present - Make sure all files in docs/ folder were uploaded - Clear your browser cache (Ctrl+Shift+R)
Problem: Images not showing
Solution: - Verify image files were uploaded - Check image paths in .qmd files - Ensure logo.png is in the root directory - Image filenames are case-sensitive!
Problem: DNS not working
Solution: - Wait 24-48 hours for DNS propagation - Use https://dnschecker.org to check propagation - Verify DNS records are correct - Try different nameservers if using Netlify DNS
Problem: SSL certificate not provisioning
Solution: - Verify DNS is pointing to Netlify - Wait up to 24 hours - Try “Renew certificate” in Netlify - Check that domain is verified
📊 MONITORING YOUR SITE
Analytics
Netlify provides basic analytics: 1. Go to your site dashboard 2. Click “Analytics” tab 3. See pageviews, bandwidth, etc.
For more detailed analytics: - Add Google Analytics code to your pages - Use Netlify Analytics (paid add-on)
Performance
Check your site speed: 1. Use Google PageSpeed Insights: https://pagespeed.web.dev/ 2. Use GTmetrix: https://gtmetrix.com/ 3. Netlify automatically optimizes images and assets
💰 PRICING
Free Plan (Perfect for you!)
- ✅ Unlimited personal and commercial projects
- ✅ 100 GB bandwidth/month
- ✅ Automatic HTTPS
- ✅ Continuous deployment
- ✅ Deploy previews
- ✅ 300 build minutes/month
Your website will easily fit in the free plan!
When to Upgrade (probably never needed)
- If you exceed 100 GB bandwidth/month
- If you need more than 300 build minutes/month
- If you want analytics and form handling
🎯 DEPLOYMENT CHECKLIST
Before going live, check:
🎉 POST-DEPLOYMENT
After your site is live:
- ✅ Test all pages thoroughly
- ✅ Share the URL with colleagues
- ✅ Update your email signature
- ✅ Post on social media (Facebook, LinkedIn)
- ✅ Update Google My Business listing
- ✅ Add to WhatsApp status
- ✅ Tell your clients!
📞 SUPPORT RESOURCES
Netlify Help
- Documentation: https://docs.netlify.com/
- Community Forum: https://answers.netlify.com/
- Status: https://www.netlifystatus.com/
MTJ Data Analytics
- Email: info@mtjdataanalytics.com
- WhatsApp: +234 901 944 1200
- Phone: +234 802 247 4330
Quarto Help
- Documentation: https://quarto.org/docs/
- Community: https://github.com/quarto-dev/quarto-cli/discussions
🚀 QUICK COMMAND REFERENCE
# Build website
quarto render
# Preview locally
quarto preview
# Git commands (for GitHub method)
git add .
git commit -m "Your message"
git push
# Check git status
git status
# View git log
git log --oneline📝 MAINTENANCE SCHEDULE
Weekly
- Check site is loading
- Test contact forms/links
Monthly
- Update webinar information
- Check and update prices if needed
- Add new content/blog posts
Quarterly
- Review all content for accuracy
- Update services if changed
- Refresh testimonials
Yearly
- Major content review
- Redesign if needed
- Check and renew domain
✅ FINAL CHECKLIST
Before announcing your website:
🎊 CONGRATULATIONS!
You’re now ready to deploy your professional website to Netlify!
Remember: - Drag & Drop: 5 minutes, perfect for beginners - GitHub: 15 minutes, best for regular updates
Your website will be: - ✅ Fast and reliable - ✅ Automatically backed up - ✅ Easy to update - ✅ Professional and secure
Need help? We’re here for you!
📧 info@mtjdataanalytics.com 📱 +234 901 944 1200
Good luck with your website launch! 🚀
© 2025 MTJ Data Analytics. All Rights Reserved.