Deploy ture-nutri-backend

Deploy and Host ture-nutri-backend with Railway

Deploy ture-nutri-backend

true-nutri-backend

divyam8/true-nutri-backend

Just deployed

Deploy and Host true-nutri-backend on Railway

TrueNutri Backend is a secure Go API that powers AI-driven nutrition tracking for mobile apps. It eliminates security vulnerabilities by moving sensitive API keys server-side while providing fast, reliable food analysis through Gemini AI integration and seamless Supabase data management.

About Hosting true-nutri-backend

Hosting true-nutri-backend involves deploying a containerized Go application that serves as a secure proxy between your Flutter mobile app and AI services. The backend handles authentication via Supabase JWT tokens, processes food images through Gemini AI for nutritional analysis, and stores results in your Supabase database. Railway's automatic deployments, environment variable management, and built-in scaling make it ideal for this production-ready API that requires zero-downtime updates and reliable performance for mobile users.

Common Use Cases

  • Mobile App Security: Eliminate API key exposure in Flutter/React Native apps by moving all AI processing server-side
  • AI-Powered Food Analysis: Process food images through Google's Gemini AI with secure authentication and rate limiting
  • Nutrition Data Management: Store and retrieve meal analysis results with user authentication and data privacy controls

Dependencies for true-nutri-backend Hosting

  • Go 1.21+ - Runtime environment for the backend application
  • Google Gemini API Key - For AI-powered food image analysis and nutritional data extraction
  • Supabase Project - Database, authentication, and storage backend (URL, anon key, and service key required)

Deployment Dependencies

Implementation Details

Environment Configuration:

# Required environment variables
GEMINI_API_KEY=your_gemini_api_key_here
SUPABASE_URL=https://your-project.supabase.co
SUPABASE_ANON_KEY=your_supabase_anon_key
SUPABASE_SERVICE_KEY=your_supabase_service_role_key
ALLOWED_ORIGINS=https://your-flutter-app.com

API Endpoint Example:

// Secure meal analysis endpoint
POST /api/v1/analyze-meal
{
  "imageBase64": "base64_encoded_food_image",
  "userHint": "Rice and dal",
  "mealType": "lunch"
}

Railway Configuration:

{
  "build": {
    "builder": "DOCKERFILE"
  },
  "deploy": {
    "healthcheckPath": "/health",
    "restartPolicyType": "ON_FAILURE"
  }
}

Why Deploy true-nutri-backend on Railway?

Railway is a singular platform to deploy your infrastructure stack. Railway will host your infrastructure so you don't have to deal with configuration, while allowing you to vertically and horizontally scale it.

By deploying true-nutri-backend on Railway, you are one step closer to supporting a complete full-stack application with minimal burden. Host your servers, databases, AI agents, and more on Railway.


Template Content

true-nutri-backend

divyam8/true-nutri-backend

More templates in this category

View Template
Foundry Virtual Tabletop
A Self-Hosted & Modern Roleplaying Platform

View Template
(v1) Simple Medusa Backend
Deploy an ecommerce backend and admin using Medusa

View Template
peppermint
Docker-compose port for peppermint.sh