Skip to content

Latest commit

 

History

History
180 lines (134 loc) · 4.22 KB

File metadata and controls

180 lines (134 loc) · 4.22 KB

🎉 Deployment Success!

✅ Backend Deployed on Render

Backend API URL: https://trustlesstask-1.onrender.com

Status:

  • ✅ Build successful
  • ✅ Server running on port 10000
  • ✅ Database initialized
  • ✅ API endpoints ready

CORS Errors (Normal):

The CORS errors you see are expected - they occur when accessing the API directly without a frontend. The API will work perfectly when called from your frontend.


🚀 Next Step: Deploy Frontend to Vercel

Option 1: Vercel Dashboard (Recommended)

  1. Go to https://vercel.com/dashboard
  2. Find your TrustlessTask project
  3. Go to SettingsEnvironment Variables
  4. Add/Update these variables:
    VITE_API_URL=https://trustlesstask-1.onrender.com/api/v1
    VITE_BLOCKFROST_PROJECT_ID=preprodJWXJGPovY8gGA1Seasf8gaTnYFZ88rzP
    VITE_NETWORK=preprod
    
  5. Go to SettingsGeneralRoot Directory
  6. Set to: frontend
  7. Save and go to Deployments
  8. Click Redeploy

Option 2: Deploy via CLI

cd frontend
vercel --prod

When prompted for environment variables, add:


📊 Your Deployment URLs

Backend (Render):

Frontend (Vercel):


🧪 Testing After Deployment

1. Test Backend API

curl https://trustlesstask-1.onrender.com/health
# Should return: {"status":"ok","timestamp":"..."}

curl https://trustlesstask-1.onrender.com/api/v1/projects
# Should return: []

2. Test Frontend

  1. Visit your Vercel URL
  2. Connect Cardano wallet
  3. Create a test project
  4. Verify it saves to backend

3. Test Real Blockchain Transactions

  1. Mark milestone as complete (1 ADA transaction)
  2. Approve and release funds (full payment transaction)
  3. Verify on Cardano explorer

🔧 Configuration Files

Backend Environment (Render)

Set these in Render dashboard:

NODE_ENV=production
PORT=10000
BLOCKFROST_PROJECT_ID=preprodJWXJGPovY8gGA1Seasf8gaTnYFZ88rzP
CARDANO_NETWORK=preprod

Frontend Environment (Vercel)

Set these in Vercel dashboard:

VITE_API_URL=https://trustlesstask-1.onrender.com/api/v1
VITE_BLOCKFROST_PROJECT_ID=preprodJWXJGPovY8gGA1Seasf8gaTnYFZ88rzP
VITE_NETWORK=preprod

🎯 What's Working

Backend (Render):

  • ✅ Express API server
  • ✅ LowDB database
  • ✅ CORS configured for frontend
  • ✅ Rate limiting
  • ✅ All API endpoints
  • ✅ Cardano transaction support

Frontend (After Vercel Deployment):

  • ✅ React + Vite app
  • ✅ Wallet connection (Nami, Lace, Eternl, Flint)
  • ✅ Project management
  • ✅ Real blockchain transactions
  • ✅ Connected to backend API

📝 Important Notes

Render Free Tier:

  • Backend may sleep after 15 minutes of inactivity
  • First request after sleep takes ~30 seconds to wake up
  • Upgrade to paid plan for always-on service

Vercel Free Tier:

  • Frontend is always fast
  • No sleep time
  • Unlimited bandwidth for hobby projects

Database:

  • Currently using LowDB (JSON file)
  • Data persists on Render
  • For production, consider MongoDB Atlas or PostgreSQL

🔐 Security Checklist

  • Environment variables set correctly
  • CORS configured for your frontend domain
  • Blockfrost API key is valid
  • No sensitive data in code
  • HTTPS enabled (automatic on Render/Vercel)

🎉 Success Indicators

After frontend deployment, you should see:

  • ✅ Frontend loads at Vercel URL
  • ✅ Backend API responds to requests
  • ✅ Wallet connection works
  • ✅ Projects can be created
  • ✅ Blockchain transactions work
  • ✅ Data persists between sessions

📞 Support

Backend URL: https://trustlesstask-1.onrender.com Status: ✅ Live and Running

Next: Deploy frontend to Vercel with the backend URL configured!


Deployment Date: December 15, 2024 Backend: Render.com Frontend: Vercel (pending) Status: Backend ✅ | Frontend ⏳