Door Sanchar

Your Local News & Stories

  • All
🔴 Breaking
Loading news...
Advertisement
Loading posts…

Latest Stories

Advertisement

More News

Trending Now

Categories

    Advertisement

    About

    ← Back to Home

    Advertisement

    Related Stories

    Admin Login

    ⚙ Admin Panel

    ✏ Write New Post

    Use your own photos from Google Drive (no copyright issues!) or any public image URL. Unsplash also has free images.
    Paste the full URL or just the 11-character video ID.
    Pick a video you uploaded to your Google Drive. Make sure to set sharing to "Anyone with the link can view" in Drive.
    0 words

    All Posts

    TitleCategoryDateViewsStatusActions
    Loading…

    Site Settings

    Settings are saved to MongoDB — they persist across all visits and devices. ✓
    Step 1 — Set up MongoDB Atlas (Free)

    1. Go to cloud.mongodb.com → Create free account → New Project → Free M0 cluster
    2. Create a database user (username + password — save these!)
    3. Under "Network Access" → Add IP: 0.0.0.0/0 (allows Vercel to connect)
    4. Click "Connect" → "Connect your application" → copy the connection string
    5. Replace <password> with your DB user password → this is your MONGODB_URI

    Step 2 — Deploy to Vercel (Free)

    1. Install Git and push this project folder to GitHub
    2. Go to vercel.com → Import your GitHub repo
    3. In Vercel → Settings → Environment Variables, add:
       MONGODB_URI = your Atlas connection string
       ADMIN_SECRET = your admin password (e.g. MySecurePass123)
    4. Click Deploy → your site goes live at yoursite.vercel.app

    Step 3 — Connect a Custom Domain

    Buy a .in domain (~₹800/yr) from GoDaddy or Namecheap → In Vercel → Settings → Domains → add your domain → update DNS records as instructed. Takes 10 minutes.

    Step 4 — Google Search Console

    Go to search.google.com/search-console → Add your domain → verify → Submit sitemap. Google will index your posts within days.

    Step 5 — Google AdSense Approval

    ✅ Publish 15+ original articles (500+ words each) · ✅ About, Contact, Privacy Policy pages · ✅ Custom domain · ✅ No copied content
    Apply at adsense.google.com

    Step 6 — SEO Tips for Local Google Traffic

    🔑 Include your city name in titles and first paragraph · 📝 Aim 600–1500 words per article · 🔗 Link between your articles · 📸 Always fill Image Alt Text · ⏱ Post 3–5 times/week · 📱 Share on WhatsApp groups & Facebook local pages

    📁 How to Connect Google Drive (One-Time Setup)

    Once set up, you can pick your own photos & videos directly from Drive into any post — no copyright worries since you own the content!

    Step 1 — Create a Google Cloud Project (Free)

    1. Go to console.cloud.google.com and sign in with your Google account
    2. Click Select a project → New Project → name it "Door Sanchar" → Create
    3. In the left menu → APIs & Services → Library

    Step 2 — Enable Required APIs

    Search for and enable both of these:
    • Google Drive API → Enable
    • Google Picker API → Enable

    Step 3 — Create API Key

    1. APIs & Services → Credentials → Create Credentials → API Key
    2. Copy the key (looks like: AIzaSy...)
    3. Click Restrict Key → under API restrictions, select Google Drive API and Google Picker API
    4. Under Application restrictions → add your domain (e.g. doorsanchar.in)

    Step 4 — Create OAuth 2.0 Client ID

    1. Credentials → Create Credentials → OAuth client ID
    2. Application type: Web application
    3. Authorized JavaScript origins: add https://www.doorsanchar.in (and http://localhost:3000 for testing)
    4. Copy the Client ID (looks like: 1234567890-abc...apps.googleusercontent.com)

    Step 5 — Add Your Keys to the Code

    Open index1.html and find these two lines near the bottom (in the script section):

    const DRIVE_API_KEY = 'YOUR_API_KEY_HERE'; const DRIVE_CLIENT_ID = 'YOUR_CLIENT_ID_HERE'; Replace the placeholder values with your actual keys. Save the file and deploy to Vercel.

    Step 6 — Make Drive Files Public Before Using

    When you upload a photo/video to Drive:
    1. Right-click the file → Share
    2. Change access to "Anyone with the link" → Viewer
    3. Click Done

    Now when you use the Drive picker in Write Post, the image/video will load for all your readers! 🎉

    ✅ Benefits of Using Google Drive

    • Your own photos = zero copyright issues
    • Free storage — 15 GB with Google account (upgrade for more)
    • Original content = better Google AdSense approval chances
    • Videos play directly on your site without YouTube
    • Files are reliably hosted on Google's servers

    Advertisement

    LocalPulse

    Your local source for news, stories, and community updates.

    Quick Links

    • Home
    • About Us
    • Contact
    • Privacy Policy
    • Terms & Conditions

    Follow Us

    • Facebook
    • Instagram
    • Twitter / X
    • WhatsApp Channel
    • YouTube

    © 2026 doorsanchar.in . All Rights Reserved.