Deploy Platfone NodeJS Backend

After configuring your environment and database, you can deploy the backend either manually or using the installer (when available).

Docker Deployment

# Build the Docker image
docker build -t platfone-nodejs-backend .

# Run the database migrations
docker run --rm --env-file .env platfone-nodejs-backend-builder node ace migration:run --force

# Run the container with environment variables
docker run -d --name platfone-nodejs-backend --env-file .env -p 3000:3000 platfone-nodejs-backend

Manual Deployment

# Clone the repository
git clone https://github.com/temp-number/temp-number-nodejs-backend.git
cd temp-number-nodejs-backend

# Install dependencies and build
npm install
npm run build

# Copy environment template and update values
cp .env.example .env
# Edit .env with your API key, database connection, and payment gateway settings

# Run database migrations
npm run migrate

# Start the server
npm run start