Skip to main content
This guide covers the requirements and preparation needed to deploy the Inmobiliaria API to production.

Server Requirements

1

Node.js Runtime

  • Node.js version 18.x or higher
  • npm or yarn package manager
2

PostgreSQL Database

  • PostgreSQL 14 or higher
  • postgresql-client tools (pg_dump, psql) for migrations
  • Connection pooling support
3

Environment Setup

  • VPS or cloud hosting with SSH access
  • Domain name configured (for production URLs)
  • SSL/TLS certificate for HTTPS

Pre-Deployment Checklist

Before deploying to production, ensure you have:
  • Production database created and accessible
  • All required environment variables configured
  • Database connection string with SSL enabled
  • HTTPS configured for your domain
  • Email service configured (Resend API key)
  • Storage configured (local or S3-compatible)
  • Process manager installed (PM2, systemd, or Docker)

Build Process

The API uses TypeScript and must be compiled before deployment:
npm run build
This command:
  1. Installs all dependencies
  2. Compiles TypeScript to JavaScript in the dist/ directory
After building, start the server with:
npm start
This runs the compiled application from dist/index.js.

Environment Variables

Refer to the Production Deployment guide for required environment variables.

Database Setup

Refer to the Database Migrations guide for setting up your production database.

Next Steps

Database Migrations

Learn how to set up and migrate your database

Production Deployment

Configure production environment and security

Build docs developers (and LLMs) love